target-ppc: ppce500_spin.c uses SPR_PIR, should use SPR_BOOKE_PIR
authorAaron Larson <alarson@ddci.com>
Thu, 23 Jun 2016 22:35:17 +0000 (15:35 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 27 Jun 2016 03:12:22 +0000 (13:12 +1000)
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>
hw/ppc/ppce500_spin.c

index 76bd78bfd7a6cca1c59fadd8743cf5d66e41c4c6..225177b5afafb92848556ccd81c81d8061b3df58 100644 (file)
@@ -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;