aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-alu.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-10-14 19:31:46 +0000
committerTom Tromey <tromey@redhat.com>2011-10-14 19:31:46 +0000
commit59c0b43d759ef7eb7877f437e3373c39be5d640d (patch)
tree9f887ad3eed26eae56bbdcac3be3e3cb44a10c4b /sim/common/sim-alu.h
parent55b1fd0ca04b1352a0d3048cc4df6aa6cd56e845 (diff)
downloadfsf-binutils-gdb-59c0b43d759ef7eb7877f437e3373c39be5d640d.zip
fsf-binutils-gdb-59c0b43d759ef7eb7877f437e3373c39be5d640d.tar.gz
fsf-binutils-gdb-59c0b43d759ef7eb7877f437e3373c39be5d640d.tar.bz2
2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
* sim-alu.h (ALU32_AND): Clear carry flag. (ALU32_AND): Clear carry flag.
Diffstat (limited to 'sim/common/sim-alu.h')
-rw-r--r--sim/common/sim-alu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-alu.h b/sim/common/sim-alu.h
index becc224..b851bea 100644
--- a/sim/common/sim-alu.h
+++ b/sim/common/sim-alu.h
@@ -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)