2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
authorTom Tromey <tromey@redhat.com>
Fri, 14 Oct 2011 19:31:46 +0000 (19:31 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 14 Oct 2011 19:31:46 +0000 (19:31 +0000)
* sim-alu.h (ALU32_AND): Clear carry flag.
(ALU32_AND): Clear carry flag.

sim/common/ChangeLog
sim/common/sim-alu.h

index f6325725f4a39675b460df8d3b921c1fb49fb1de..ac5175767fac9c37bfb5977968a1fe593e71efe1 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-14  Alexey Makhalov  <makhaloff@gmail.com>
+
+       * sim-alu.h (ALU32_AND): Clear carry flag.
+       (ALU32_AND): Clear carry flag.
+
 2011-10-09  Mike Frysinger  <vapier@gentoo.org>
 
        * dv-cfi.c: Include stdbool.h.
index becc224a9c8aa9d743401365f4bd8ae40265bdf4..b851bea3df53079a7f7fcd895a960b51ee577ee6 100644 (file)
@@ -1007,14 +1007,14 @@ do {                                                                    \
 #define ALU32_AND(VAL)                                                 \
 do {                                                                   \
   alu32_r &= (VAL);                                                    \
-  alu32_r = 0;                                                         \
+  alu32_c = 0;                                                         \
   alu32_v = 0;                                                         \
 } while (0)
 
 #define ALU64_AND(VAL)                                                 \
 do {                                                                   \
   alu64_r &= (VAL);                                                    \
-  alu64_r = 0;                                                         \
+  alu64_c = 0;                                                         \
   alu64_v = 0;                                                         \
 } while (0)