I'd appreciate somebody checking on this, but it should be ok.
I'll wait a day or so before checking it in.
Elena
2002-05-28 Elena Zannoni <ezannoni@xxxxxxxxxx>
From Jason Eckhardt <jle@xxxxxxxxxx>
* d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is
less than MOD_S (post-decrement).
Index: d10v_sim.h
===================================================================
RCS file: /cvs/src/src/sim/d10v/d10v_sim.h,v
retrieving revision 1.2
diff -u -p -r1.2 d10v_sim.h
--- d10v_sim.h 9 Feb 2000 05:08:42 -0000 1.2
+++ d10v_sim.h 28 May 2002 16:40:35 -0000
@@ -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)); \
} \
|