mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
target-ppc: ppce500_spin.c uses SPR_PIR, should use SPR_BOOKE_PIR
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 <alarson@ddci.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a01aef5d2f
commit
6d18a7a1ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user