aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-05 13:09:54 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-05 13:09:54 +0000
commit1c27f8fbfead8f5ff12da6946436fe35c6adcac4 (patch)
tree6812eedfda32891063263f9f70c20615170a7bf0 /target-ppc/helper.c
parent1192dad8798e4e4b72b14ff3a93c11cbb26eae5b (diff)
PowerPC hardware reset vector is now considered as part of the exception model.
Use it at CPU initialisation time. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3332 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r--target-ppc/helper.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 1039111a0b..99562d6684 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -2792,11 +2792,7 @@ void cpu_ppc_reset (void *opaque)
msr_fp = 1; /* Allow floating point exceptions */
msr_pr = 1;
#else
-#if defined(TARGET_PPC64)
- env->nip = 0x00000100;
-#else
- env->nip = 0xFFFFFFFC;
-#endif
+ env->nip = env->hreset_vector | env->excp_prefix;
ppc_tlb_invalidate_all(env);
#endif
do_compute_hflags(env);