This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFC] sim/d10v/d10v_sim.h



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@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).


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)); \
   } \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]