[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 1/4] target-ppc: ppce500_spin.c uses SPR_PIR, should us
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 1/4] target-ppc: ppce500_spin.c uses SPR_PIR, should use SPR_BOOKE_PIR |
Date: |
Mon, 27 Jun 2016 15:29:29 +1000 |
From: Aaron Larson <address@hidden>
ppce500_spin.c uses SPR_PIR to initialize the spin table, however on
Book E processors the correct SPR is SPR_BOOKE_PIR.
Signed-off-by: Aaron Larson <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/ppce500_spin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/ppce500_spin.c b/hw/ppc/ppce500_spin.c
index 76bd78b..225177b 100644
--- a/hw/ppc/ppce500_spin.c
+++ b/hw/ppc/ppce500_spin.c
@@ -104,7 +104,7 @@ static void spin_kick(void *data)
hwaddr map_start;
cpu_synchronize_state(cpu);
- stl_p(&curspin->pir, env->spr[SPR_PIR]);
+ stl_p(&curspin->pir, env->spr[SPR_BOOKE_PIR]);
env->nip = ldq_p(&curspin->addr) & (map_size - 1);
env->gpr[3] = ldq_p(&curspin->r3);
env->gpr[4] = 0;
--
2.5.5
- [Qemu-ppc] [PULL 0/4] ppc-for-2.7 queue 20160627, David Gibson, 2016/06/27
- [Qemu-ppc] [PULL 3/4] qapi: Report support for -device cpu hotplug in query-machines, David Gibson, 2016/06/27
- [Qemu-ppc] [PULL 1/4] target-ppc: ppce500_spin.c uses SPR_PIR, should use SPR_BOOKE_PIR,
David Gibson <=
- [Qemu-ppc] [PULL 2/4] ppc/xics: Remove unused xics_set_irq_type(), David Gibson, 2016/06/27
- [Qemu-ppc] [PULL 4/4] qapi: keep names in 'CpuInstanceProperties' in sync with struct CPUCore, David Gibson, 2016/06/27
- Re: [Qemu-ppc] [PULL 0/4] ppc-for-2.7 queue 20160627, Peter Maydell, 2016/06/27