From 59c0b43d759ef7eb7877f437e3373c39be5d640d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 14 Oct 2011 19:31:46 +0000 Subject: [PATCH] 2011-10-14 Alexey Makhalov * sim-alu.h (ALU32_AND): Clear carry flag. (ALU32_AND): Clear carry flag. --- sim/common/ChangeLog | 5 +++++ sim/common/sim-alu.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index f6325725f4a..ac5175767fa 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2011-10-14 Alexey Makhalov + + * sim-alu.h (ALU32_AND): Clear carry flag. + (ALU32_AND): Clear carry flag. + 2011-10-09 Mike Frysinger * dv-cfi.c: Include stdbool.h. diff --git a/sim/common/sim-alu.h b/sim/common/sim-alu.h index becc224a9c8..b851bea3df5 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) -- 2.30.2