sim: bfin: include devices.h to fix build warnings
[deliverable/binutils-gdb.git] / sim / bfin / dv-bfin_rtc.c
index 870d6b10950c3f7f7edeed5b5fe3af453123f2fe..b5d63fb58fbf6de301eb565cbd43e64d1283e8a3 100644 (file)
@@ -1,6 +1,6 @@
 /* Blackfin Real Time Clock (RTC) model.
 
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2012 Free Software Foundation, Inc.
    Contributed by Analog Devices, Inc.
 
    This file is part of simulators.
@@ -80,7 +80,7 @@ bfin_rtc_io_write_buffer (struct hw *me, const void *source,
       /* XXX: Ignore these since we are wired to host.  */
       break;
     case mmr_offset(istat):
-      dv_w1c_2 (value16p, value, 1 << 14);
+      dv_w1c_2 (value16p, value, ~(1 << 14));
       break;
     case mmr_offset(alarm):
       break;
This page took 0.023678 seconds and 4 git commands to generate.