Skip to contentSkip to conversation

PPC: init_excp_7x0: fix hreset entry point.

PATCH In review Fabien Chouteau 2 participants 3 messages Mar 27, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: init_excp_7x0: fix hreset entry point.

From: gingold <gingold@020d506d-db78-4e55-b2a8-6c851f84c332>

According to the PowePC 750 user's manual, the vector offset for system reset (both /HRESET and /SRESET) is 0x00100.

---
 target-ppc/translate_init.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
target-ppc/translate_init.c +4 -4
index 781170f..a5bae1e 100644
@@ -2885,7 +2885,7 @@ static void init_excp_7x0 (CPUPPCState *env)
     env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
     env->hreset_excp_prefix = 0x00000000UL;
     /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
@@ -2931,7 +2931,7 @@ static void init_excp_750cx (CPUPPCState *env)
     env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
     env->hreset_excp_prefix = 0x00000000UL;
     /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
@@ -2959,7 +2959,7 @@ static void init_excp_7x5 (CPUPPCState *env)
     env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
     env->hreset_excp_prefix = 0x00000000UL;
     /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
@@ -2985,7 +2985,7 @@ static void init_excp_7400 (CPUPPCState *env)
     env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
     env->hreset_excp_prefix = 0x00000000UL;
     /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Fabien Chouteau

From: gingold <gingold@020d506d-db78-4e55-b2a8-6c851f84c332>

What is this? :)

Alex

Quoted 52 lines

According to the PowePC 750 user's manual, the vector offset for system reset (both /HRESET and /SRESET) is 0x00100.

---
target-ppc/translate_init.c | 8 ++++----

1 file changed, 4 insertions(+), 4 deletions(-)
target-ppc/translate_init.c +4 -4
index 781170f..a5bae1e 100644
@@ -2885,7 +2885,7 @@ static void init_excp_7x0 (CPUPPCState *env)
    env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
    env->hreset_excp_prefix = 0x00000000UL;
    /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
@@ -2931,7 +2931,7 @@ static void init_excp_750cx (CPUPPCState *env)
    env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
    env->hreset_excp_prefix = 0x00000000UL;
    /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
@@ -2959,7 +2959,7 @@ static void init_excp_7x5 (CPUPPCState *env)
    env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
    env->hreset_excp_prefix = 0x00000000UL;
    /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
@@ -2985,7 +2985,7 @@ static void init_excp_7400 (CPUPPCState *env)
    env->excp_vectors[POWERPC_EXCP_THERM]    = 0x00001700;
    env->hreset_excp_prefix = 0x00000000UL;
    /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
+    env->hreset_vector = 0xFFF00100UL;
 #endif
 }
 
Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 7 lines · Alexander Graf
Quoted 1 line · Fabien Chouteau

From: gingold <gingold@020d506d-db78-4e55-b2a8-6c851f84c332>

What is this? :)

Oups :) Tristan Gingold is a colleague of mine. I'll fix this.

Signature · 1 line
Fabien Chouteau