PR c++/16597
[deliverable/binutils-gdb.git] / sim / bfin / dv-bfin_emac.c
index 6b80b588905b258fee3bbce966ebbcb5ada07def..a79d54a6106dfc0b27b55e45356e748635380e9d 100644 (file)
@@ -1,6 +1,6 @@
 /* Blackfin Ethernet Media Access Controller (EMAC) model.
 
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2014 Free Software Foundation, Inc.
    Contributed by Analog Devices, Inc.
 
    This file is part of simulators.
@@ -224,7 +224,7 @@ bfin_emac_io_write_buffer (struct hw *me, const void *source,
       dv_w1c_4_partial (valuep, value, 0xf20);
       break;
     case mmr_offset(systat):
-      dv_w1c_4 (valuep, value, 0x1e);
+      dv_w1c_4 (valuep, value, 0xe1);
       break;
     case mmr_offset(staadd):
       *valuep = value | STABUSY;
@@ -242,7 +242,7 @@ bfin_emac_io_write_buffer (struct hw *me, const void *source,
     case mmr_offset(tx_stky):
     case mmr_offset(mmc_rirqs):
     case mmr_offset(mmc_tirqs):
-      dv_w1c_4 (valuep, value, 0);
+      dv_w1c_4 (valuep, value, -1);
       break;
     case mmr_offset(mmc_ctl):
       /* Writing to bit 0 clears all counters.  */
@@ -599,7 +599,8 @@ bfin_emac_finish (struct hw *me)
   bfin_emac_tap_init (me);
 }
 
-const struct hw_descriptor dv_bfin_emac_descriptor[] = {
+const struct hw_descriptor dv_bfin_emac_descriptor[] =
+{
   {"bfin_emac", bfin_emac_finish,},
   {NULL, NULL},
 };
This page took 0.024033 seconds and 4 git commands to generate.