Add missing changelog entries of last commit
[deliverable/binutils-gdb.git] / sim / bfin / dv-bfin_otp.c
index 902796fbdf4807b8a76f670cd9c383c8ecc720d3..52bcf47bac73d47c758c4f679082370f40eb2e1a 100644 (file)
@@ -1,6 +1,6 @@
 /* Blackfin One-Time Programmable Memory (OTP) model
 
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2015 Free Software Foundation, Inc.
    Contributed by Analog Devices, Inc.
 
    This file is part of simulators.
@@ -149,7 +149,7 @@ bfin_otp_io_write_buffer (struct hw *me, const void *source, int space,
     case mmr_offset(status):
       dv_bfin_mmr_require_16 (me, addr, nr_bytes, true);
       /* XXX: All bits seem to be W1C.  */
-      dv_w1c_2 (value16p, value, 0);
+      dv_w1c_2 (value16p, value, -1);
       break;
     case mmr_offset(timing):
     case mmr_offset(data0):
@@ -236,6 +236,12 @@ attach_bfin_otp_regs (struct hw *me, struct bfin_otp *otp)
   otp->base = attach_address;
 }
 
+static const struct hw_port_descriptor bfin_otp_ports[] =
+{
+  { "stat", 0, 0, output_port, },
+  { NULL, 0, 0, 0, },
+};
+
 static void
 bfin_otp_finish (struct hw *me)
 {
@@ -249,6 +255,7 @@ bfin_otp_finish (struct hw *me)
   set_hw_data (me, otp);
   set_hw_io_read_buffer (me, bfin_otp_io_read_buffer);
   set_hw_io_write_buffer (me, bfin_otp_io_write_buffer);
+  set_hw_ports (me, bfin_otp_ports);
 
   attach_bfin_otp_regs (me, otp);
 
@@ -302,7 +309,8 @@ bfin_otp_finish (struct hw *me)
   bfin_otp_write_page_val (otp, FPS03, (void *)part_str);
 }
 
-const struct hw_descriptor dv_bfin_otp_descriptor[] = {
+const struct hw_descriptor dv_bfin_otp_descriptor[] =
+{
   {"bfin_otp", bfin_otp_finish,},
   {NULL, NULL},
 };
This page took 0.023852 seconds and 4 git commands to generate.