Skip to content

Commit

Permalink
target/ppc: Fix wrong number of UAMR register
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
huth authored and dgibson committed Mar 14, 2017
1 parent 5bac3c3 commit f244115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/ppc/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f244115

Please sign in to comment.