]> git.proxmox.com Git - qemu.git/commitdiff
prep: Fix NIP reset value
authorFabien Chouteau <chouteau@adacore.com>
Tue, 30 Apr 2013 15:07:04 +0000 (17:07 +0200)
committerAndreas Färber <andreas.faerber@web.de>
Sun, 5 May 2013 13:58:06 +0000 (15:58 +0200)
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>
hw/ppc/prep.c

index 59c7da3af73e4d9b4964acf869bcbb3098caff2e..2ad5b41f1d962458e3ec397d061e7fb118c66386 100644 (file)
@@ -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 */