* [PATCH]: Fix page register definition in HC11 simulator
@ 2003-08-08 20:55 Stephane Carrez
2003-08-08 23:12 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: Stephane Carrez @ 2003-08-08 20:55 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
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).
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.
[-- Attachment #2: sim-fix.diffs --]
[-- Type: text/plain, Size: 563 bytes --]
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]: Fix page register definition in HC11 simulator
2003-08-08 20:55 [PATCH]: Fix page register definition in HC11 simulator Stephane Carrez
@ 2003-08-08 23:12 ` Andrew Cagney
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2003-08-08 23:12 UTC (permalink / raw)
To: Stephane Carrez; +Cc: gdb-patches
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-08 23:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-08 20:55 [PATCH]: Fix page register definition in HC11 simulator Stephane Carrez
2003-08-08 23:12 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox