diff mbox

[PULL,1/3] prep: Fix NIP reset value

Message ID 1367800672-2914-2-git-send-email-andreas.faerber@web.de
State New
Headers show

Commit Message

Andreas Färber May 6, 2013, 12:37 a.m. UTC
From: Fabien Chouteau <chouteau@adacore.com>

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 | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

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 */