Commit 2d3eb7bfd9f91f17a22dc6d75bdb8eec25937a55

Authored by Tristan Gingold
Committed by Blue Swirl
1 parent fc1c67bc

Fix powerpc 604 reset vector

According to 604eUM_book (see 8.3.3 Reset inputs p8-54), the IP bit is set
for hreset and the vector is at offset 0x100 from the exception prefix.

No difference in this area between 604 and 604e.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Showing 1 changed file with 2 additions and 2 deletions
target-ppc/translate_init.c
... ... @@ -2875,9 +2875,9 @@ static void init_excp_604 (CPUPPCState *env)
2875 2875 env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
2876 2876 env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
2877 2877 env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
2878   - env->hreset_excp_prefix = 0x00000000UL;
  2878 + env->hreset_excp_prefix = 0xFFF00000UL;
2879 2879 /* Hardware reset vector */
2880   - env->hreset_vector = 0xFFFFFFFCUL;
  2880 + env->hreset_vector = 0x00000100UL;
2881 2881 #endif
2882 2882 }
2883 2883  
... ...