diff options
author | Helge Deller <deller@gmx.de> | 2023-08-07 11:17:59 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-08-25 15:57:49 +0200 |
commit | c400b6ed877213ad3d87d0e27f260401a9194c7c (patch) | |
tree | a5d27dd16e2fd43b4ac704a339ecb2dafd5a6ba3 /target/hppa | |
parent | 7e5a8bb22368b3555644cb2debd3df24592f3a21 (diff) |
target/hppa: Add missing PL1 and PL2 privilege levels
The hppa CPU has 4 privilege levels (0-3).
Mention the missing PL1 and PL2 levels, although the Linux kernel
uses only 0 (KERNEL) and 3 (USER). Not sure about HP-UX.
Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'target/hppa')
-rw-r--r-- | target/hppa/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h index 75c5c0ccf7..6c5b0e67c8 100644 --- a/target/hppa/cpu.h +++ b/target/hppa/cpu.h @@ -31,8 +31,11 @@ #define TCG_GUEST_DEFAULT_MO TCG_MO_ALL #define MMU_KERNEL_IDX 0 +#define MMU_PL1_IDX 1 +#define MMU_PL2_IDX 2 #define MMU_USER_IDX 3 #define MMU_PHYS_IDX 4 + #define TARGET_INSN_START_EXTRA_WORDS 1 /* Hardware exceptions, interrupts, faults, and traps. */ |