aboutsummaryrefslogtreecommitdiff
path: root/target/hppa
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-08-07 12:14:36 +0200
committerHelge Deller <deller@gmx.de>2023-08-27 17:15:19 +0200
commit2ad04500543094bc83f5f13dbb099000f010e008 (patch)
tree3d50315d06917d769a778a107deff9ab63b56a18 /target/hppa
parent3d066afc68d469b2c7cbabf62d32421eef478a66 (diff)
downloadqemu-2ad04500543094bc83f5f13dbb099000f010e008.zip
qemu-2ad04500543094bc83f5f13dbb099000f010e008.tar.gz
qemu-2ad04500543094bc83f5f13dbb099000f010e008.tar.bz2
target/hppa: Switch to use MMU indices 11-15
The MMU indices 9-15 will use shorter assembler instructions when run on a x86-64 host. So, switch over to those to get smaller code and maybe minimally faster emulation. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'target/hppa')
-rw-r--r--target/hppa/cpu.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h
index 6623712..fa13694 100644
--- a/target/hppa/cpu.h
+++ b/target/hppa/cpu.h
@@ -30,14 +30,14 @@
basis. It's probably easier to fall back to a strong memory model. */
#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 PRIV_TO_MMU_IDX(priv) (priv)
-#define MMU_IDX_TO_PRIV(mmu_idx) (mmu_idx)
+#define MMU_KERNEL_IDX 11
+#define MMU_PL1_IDX 12
+#define MMU_PL2_IDX 13
+#define MMU_USER_IDX 14
+#define MMU_PHYS_IDX 15
+
+#define PRIV_TO_MMU_IDX(priv) (MMU_KERNEL_IDX + (priv))
+#define MMU_IDX_TO_PRIV(mmu_idx) ((mmu_idx) - MMU_KERNEL_IDX)
#define TARGET_INSN_START_EXTRA_WORDS 1