]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/ppc: Fix wrong number of UAMR register
authorThomas Huth <thuth@redhat.com>
Wed, 8 Mar 2017 19:58:43 +0000 (20:58 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 14 Mar 2017 00:12:10 +0000 (11:12 +1100)
The SPR UAMR has the number 13, and not 12. (Fortunately it seems like
Linux is not using this register yet - only the privileged version with
number 29 ... that's why nobody noticed this problem yet)

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h

index 7c4a1f50b38be392ad281bad5b7cc13bd5998b68..5ee33b3fd31569a493d00b48e329af6c19a76739 100644 (file)
@@ -1408,7 +1408,7 @@ int ppc_compat_max_threads(PowerPCCPU *cpu);
 #define SPR_601_UDECR         (0x006)
 #define SPR_LR                (0x008)
 #define SPR_CTR               (0x009)
-#define SPR_UAMR              (0x00C)
+#define SPR_UAMR              (0x00D)
 #define SPR_DSCR              (0x011)
 #define SPR_DSISR             (0x012)
 #define SPR_DAR               (0x013) /* DAE for PowerPC 601 */