aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc
diff options
context:
space:
mode:
authorFabien Chouteau <chouteau@adacore.com>2013-04-30 17:07:04 +0200
committerAndreas Färber <andreas.faerber@web.de>2013-05-05 15:58:06 +0200
commit88432756ead526d9c321c20f10fafdbe40e5eaba (patch)
tree2adf1ff65b38a4df072d8c31d4974b27338d38e4 /hw/ppc
parent467b34689d277fa56c09ad07ca0f08d7d7539f6d (diff)
downloadqemu-88432756ead526d9c321c20f10fafdbe40e5eaba.zip
qemu-88432756ead526d9c321c20f10fafdbe40e5eaba.tar.gz
qemu-88432756ead526d9c321c20f10fafdbe40e5eaba.tar.bz2
prep: Fix NIP reset value
The value was changed by commit 09d9828ace37ead29d510a7e24e63c2f15cd4b1c "PPC: fix hreset_vector for 60x, ...". Change it back for prep machine to unbreak OpenHack'Ware. Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/prep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index 59c7da3..2ad5b41 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -427,6 +427,9 @@ static void ppc_prep_reset(void *opaque)
PowerPCCPU *cpu = opaque;
cpu_reset(CPU(cpu));
+
+ /* Reset address */
+ cpu->env.nip = 0xfffffffc;
}
/* PowerPC PREP hardware initialisation */