aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/d10v_sim.h
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-06-03 00:36:02 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-06-03 00:36:02 +0000
commitc7675842d89c464a9e374db7817c70626ff28561 (patch)
treea329ba7d3d601a2318e2c17efe8d2cd6a6b51d28 /sim/d10v/d10v_sim.h
parent831ab497124f8e3b444dfd5a8948e9b644e0df78 (diff)
downloadfsf-binutils-gdb-c7675842d89c464a9e374db7817c70626ff28561.zip
fsf-binutils-gdb-c7675842d89c464a9e374db7817c70626ff28561.tar.gz
fsf-binutils-gdb-c7675842d89c464a9e374db7817c70626ff28561.tar.bz2
2002-05-28 Elena Zannoni <ezannoni@redhat.com>
From Jason Eckhardt <jle@redhat.com> * d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is less than MOD_S (post-decrement).
Diffstat (limited to 'sim/d10v/d10v_sim.h')
-rw-r--r--sim/d10v/d10v_sim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h
index 3566da0..377a001 100644
--- a/sim/d10v/d10v_sim.h
+++ b/sim/d10v/d10v_sim.h
@@ -435,7 +435,7 @@ do \
{ \
int test_i = i < 0 ? i : ~((i) - 1); \
if (PSW_MD && GPR (x) == (MOD_E & test_i)) \
- SET_GPR (x, MOD_S); \
+ SET_GPR (x, MOD_S & test_i); \
else \
SET_GPR (x, GPR (x) + (i)); \
} \