This is the mail archive of the gdb-patches@sourceware.cygnus.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]

AM33's inc4 does modify CC


Just like AM33's `inc', its `inc4' instruction modifies CC.  The
current implementation was based on an old, incorrect manual.  More
recent versions of the documentation have fixed the error.  I've
already got the patch for GCC; here's the corresponding fix for the
sim.  Ok to install?  Release branch?

Index: sim/mn10300/ChangeLog
from  Alexandre Oliva  <aoliva@cygnus.com>

	* am33.igen (inc4 Rn): Use genericAdd so as to modify flags.

Index: sim/mn10300/am33.igen
===================================================================
RCS file: /cvs/cvsfiles/devo/sim/mn10300/am33.igen,v
retrieving revision 1.27
diff -u -r1.27 am33.igen
--- sim/mn10300/am33.igen	2000/04/23 21:10:31	1.27
+++ sim/mn10300/am33.igen	2000/04/23 21:32:13
@@ -685,7 +685,7 @@
 
   PC = cia;
   dstreg = translate_rreg (SD_, RN0);
-  State.regs[dstreg] += 4;
+  genericAdd (4, dstreg);
 }
 
 // 1111 1001 1101 1000 Rm Rn; cmp Rm,Rn

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

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