From: Aaron Larson Date: Thu, 23 Jun 2016 22:35:17 +0000 (-0700) Subject: target-ppc: ppce500_spin.c uses SPR_PIR, should use SPR_BOOKE_PIR X-Git-Tag: TizenStudio_2.0_p4.0~6^2~12^2~6^2~177^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d18a7a1ff9665ad48a68a692fdf0a61edefcae8;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: David Gibson --- 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;