From: Helge Deller Date: Mon, 7 Aug 2023 09:17:59 +0000 (+0200) Subject: target/hppa: Add missing PL1 and PL2 privilege levels X-Git-Tag: v8.2.0~204^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c400b6ed877213ad3d87d0e27f260401a9194c7c;p=mirror_qemu.git 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 Reviewed-by: Philippe Mathieu-Daudé --- 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. */