Skip to contentSkip to conversation

PPC: Add breakpoint registers for 603 and e300

PATCH Applied Fabien Chouteau 2 participants 4 messages Apr 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: Add breakpoint registers for 603 and e300

---
 target-ppc/translate_init.c |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
target-ppc/translate_init.c +34 -0
index 781170f..9e73a23 100644
@@ -1149,6 +1149,13 @@ static void gen_spr_603 (CPUPPCState *env)
                  SPR_NOACCESS, SPR_NOACCESS,
                  &spr_read_generic, &spr_write_generic,
                  0x00000000);
+    /* Breakpoints */
+    /* XXX : not implemented */
+    spr_register(env, SPR_IABR, "IABR",
+                 SPR_NOACCESS, SPR_NOACCESS,
+                 &spr_read_generic, &spr_write_generic,
+                 0x00000000);
+
 }
 
 /* SPR specific to PowerPC G2 implementation */
@@ -4157,6 +4164,33 @@ static void init_proc_G2LE (CPUPPCState *env)
                  SPR_NOACCESS, SPR_NOACCESS,
                  &spr_read_generic, &spr_write_generic,
                  0x00000000);
+    /* Breakpoints */
+    /* XXX : not implemented */
+    spr_register(env, SPR_DABR, "DABR",
+                 SPR_NOACCESS, SPR_NOACCESS,
+                 &spr_read_generic, &spr_write_generic,
+                 0x00000000);
+    /* XXX : not implemented */
+    spr_register(env, SPR_DABR2, "DABR2",
+                 SPR_NOACCESS, SPR_NOACCESS,
+                 &spr_read_generic, &spr_write_generic,
+                 0x00000000);
+    /* XXX : not implemented */
+    spr_register(env, SPR_IABR2, "IABR2",
+                 SPR_NOACCESS, SPR_NOACCESS,
+                 &spr_read_generic, &spr_write_generic,
+                 0x00000000);
+    /* XXX : not implemented */
+    spr_register(env, SPR_IBCR, "IBCR",
+                 SPR_NOACCESS, SPR_NOACCESS,
+                 &spr_read_generic, &spr_write_generic,
+                 0x00000000);
+    /* XXX : not implemented */
+    spr_register(env, SPR_DBCR, "DBCR",
+                 SPR_NOACCESS, SPR_NOACCESS,
+                 &spr_read_generic, &spr_write_generic,
+                 0x00000000);
+
     /* Memory management */
     gen_low_BATs(env);
     gen_high_BATs(env);
Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 8 lines · Alexander Graf
Quoted 2 lines · Fabien Chouteau

Please provide a patch description next time.

It's pretty self explanatory, isn't it? :)

Quoted 2 lines

Applied to ppc-next.

Thanks,

Signature · 1 line
Fabien Chouteau
#3 lore raw
Quoted 11 lines · Fabien Chouteau
Quoted 8 lines · Alexander Graf
Quoted 2 lines · Fabien Chouteau

Please provide a patch description next time.

It's pretty self explanatory, isn't it? :)

Yes, but I dislike patches that only have a subject, but no description :)

Alex