aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-04-28 18:07:01 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-04-28 18:07:01 +0000
commit2d3eb7bfd9f91f17a22dc6d75bdb8eec25937a55 (patch)
tree81d1327214df34c81fcd1789eb9e0e0d144b144a /target-ppc
parentfc1c67bc2a43a53f7315b602e0c67f9604835fe1 (diff)
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>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 1c2aca8845..f5e3b28f62 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -2875,9 +2875,9 @@ static void init_excp_604 (CPUPPCState *env)
env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
- env->hreset_excp_prefix = 0x00000000UL;
+ env->hreset_excp_prefix = 0xFFF00000UL;
/* Hardware reset vector */
- env->hreset_vector = 0xFFFFFFFCUL;
+ env->hreset_vector = 0x00000100UL;
#endif
}