summaryrefslogtreecommitdiff
path: root/sim
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
commitd3ab978a8eeb5781340e46f481eb547b4a3c5e68 (patch)
tree4005c91d2f888cc5e2ee40456f8711782d5a9363 /sim
parent0c9266e365cc4ee05f7d3fa1e07b7aa65a1ba603 (diff)
downloadgdb-d3ab978a8eeb5781340e46f481eb547b4a3c5e68.tar.gz
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')
-rw-r--r--sim/d10v/ChangeLog6
-rw-r--r--sim/d10v/d10v_sim.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index d3d0d6b433e..8b4ebaf0dd7 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,9 @@
+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).
+
2002-06-01 Andrew Cagney <ac131313@redhat.com>
* interp.c (sim_fetch_register, sim_store_register): Use a switch
diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h
index 3566da01d26..377a001580d 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)); \
} \