[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 10/30] PPC: mac newworld: fix cpu NIP reset value
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 10/30] PPC: mac newworld: fix cpu NIP reset value |
Date: |
Fri, 26 Apr 2013 20:21:29 +0200 |
On -M mac99, we can run 970 CPUs. However, these CPUs define the initial
instruction pointer they start execution at as part of their bootup protocol,
so effectively it's up to the board to decide where they start.
This went unnoticed, because they used to boot at the same location our flash
was mapped to, but due to the recent reset changes our 970 CPUs want to reset
to 0x100 now, which is always a 0 instruction.
Set the initial IP to something reasonable for -M mac99.
Signed-off-by: Alexander Graf <address@hidden>
Reviewed-by: Fabien Chouteau <address@hidden>
---
hw/ppc/mac_newworld.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
index 4a9b883..ce44e95 100644
--- a/hw/ppc/mac_newworld.c
+++ b/hw/ppc/mac_newworld.c
@@ -126,6 +126,8 @@ static void ppc_core99_reset(void *opaque)
PowerPCCPU *cpu = opaque;
cpu_reset(CPU(cpu));
+ /* 970 CPUs want to get their initial IP as part of their boot protocol */
+ cpu->env.nip = PROM_ADDR + 0x100;
}
/* PowerPC Mac99 hardware initialisation */
--
1.6.0.2
- [Qemu-ppc] [PULL 00/30] ppc patch queue 2013-04-26, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 01/30] target-ppc: Enable ISEL on POWER7, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 08/30] linux-headers: Update to kvm/queue, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 02/30] PPC: e500: advertise 4.2 MPIC only if KVM supports EPR, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 04/30] target-ppc: fix nego and subf*o instructions, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 06/30] PPC: Add breakpoint registers for 603 and e300, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 10/30] PPC: mac newworld: fix cpu NIP reset value,
Alexander Graf <=
- [Qemu-ppc] [PATCH 07/30] target-ppc: Fix narrow-mode add/sub carry output, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 11/30] PPC: Fix compile with profiling enabled, Alexander Graf, 2013/04/26
- [Qemu-ppc] [PATCH 05/30] PPC: fix hreset_vector for 60x, 7x0, 7x5, G2, MPC8xx, MPC5xx, 7400 and 7450, Alexander Graf, 2013/04/26
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 05/30] PPC: fix hreset_vector for 60x, 7x0, 7x5, G2, MPC8xx, MPC5xx, 7400 and 7450, Andreas Färber, 2013/04/28
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 05/30] PPC: fix hreset_vector for 60x, 7x0, 7x5, G2, MPC8xx, MPC5xx, 7400 and 7450, Fabien Chouteau, 2013/04/29
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 05/30] PPC: fix hreset_vector for 60x, 7x0, 7x5, G2, MPC8xx, MPC5xx, 7400 and 7450, Andreas Färber, 2013/04/29
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 05/30] PPC: fix hreset_vector for 60x, 7x0, 7x5, G2, MPC8xx, MPC5xx, 7400 and 7450, Aurelien Jarno, 2013/04/29
- [Qemu-ppc] [PATCH] Fix PReP NIP reset value, Fabien Chouteau, 2013/04/30
- Re: [Qemu-ppc] [PATCH] Fix PReP NIP reset value, Alexander Graf, 2013/04/30
- Re: [Qemu-ppc] [Qemu-devel] [PATCH] Fix PReP NIP reset value, Fabien Chouteau, 2013/04/30