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]

Re: [PATCH]: Fix page register definition in HC11 simulator


Stephane,

Hi!

This patch fixes the definition of page register in simulator so that
it matches gdb definition (ok, I could have used a gdb mapping but I prefer
to have the same numbers everywhere if possible).

Add a file include/gdb/sim-m68hc11.h and then share that between GDB and the sim.


enjoy,
Andrew


Committed on 6_0 and mainline.

Stephane

2003-08-08 Stephane Carrez <stcarrez@nerim.fr>

* sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.




Index: sim-main.h
===================================================================
RCS file: /cvs/src/src/sim/m68hc11/sim-main.h,v
retrieving revision 1.9.44.1
diff -u -p -r1.9.44.1 sim-main.h
--- sim-main.h 8 Aug 2003 20:26:28 -0000 1.9.44.1
+++ sim-main.h 8 Aug 2003 20:30:19 -0000
@@ -79,8 +79,8 @@ enum cpu_type
#define A_REGNUM 5
#define B_REGNUM 6
#define PSW_REGNUM 7
-#define Z_REGNUM 8
-#define PAGE_REGNUM 9
+#define PAGE_REGNUM 8
+#define Z_REGNUM 9
typedef struct m6811_regs {
unsigned short d;



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