Patchwork PPC: Add breakpoint registers for 603 and e300

login
register
mail settings
Submitter Fabien Chouteau
Date April 3, 2013, 2:03 p.m.
Message ID <1364997818-20687-1-git-send-email-chouteau@adacore.com>
Download mbox | patch
Permalink /patch/233491/
State New
Headers show

Comments

Fabien Chouteau - April 3, 2013, 2:03 p.m.
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
---
 target-ppc/translate_init.c |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
Alexander Graf - April 3, 2013, 2:11 p.m.
On 03.04.2013, at 16:03, Fabien Chouteau wrote:

> 
> Signed-off-by: Fabien Chouteau <chouteau@adacore.com>

Please provide a patch description next time.

Applied to ppc-next.


Alex
Fabien Chouteau - April 3, 2013, 2:19 p.m.
On 04/03/2013 04:11 PM, Alexander Graf wrote:
> 
> On 03.04.2013, at 16:03, Fabien Chouteau wrote:
> 
>>
>> Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
> 
> Please provide a patch description next time.
> 

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

> Applied to ppc-next.
> 

Thanks,
Alexander Graf - April 3, 2013, 2:20 p.m.
On 03.04.2013, at 16:19, Fabien Chouteau wrote:

> On 04/03/2013 04:11 PM, Alexander Graf wrote:
>> 
>> On 03.04.2013, at 16:03, Fabien Chouteau wrote:
>> 
>>> 
>>> Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
>> 
>> 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

Patch

diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 781170f..9e73a23 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -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);