[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/23] include/exec: Set default `NB_MMU_MODES` to 16
From: |
Anton Johansson |
Subject: |
[PATCH 01/23] include/exec: Set default `NB_MMU_MODES` to 16 |
Date: |
Mon, 6 Mar 2023 18:52:08 +0100 |
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
include/exec/cpu-defs.h | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
index be920d4208..69cd62c19b 100644
--- a/include/exec/cpu-defs.h
+++ b/include/exec/cpu-defs.h
@@ -36,9 +36,6 @@
#ifndef TARGET_LONG_BITS
# error TARGET_LONG_BITS must be defined in cpu-param.h
#endif
-#ifndef NB_MMU_MODES
-# error NB_MMU_MODES must be defined in cpu-param.h
-#endif
#ifndef TARGET_PHYS_ADDR_SPACE_BITS
# error TARGET_PHYS_ADDR_SPACE_BITS must be defined in cpu-param.h
#endif
@@ -55,6 +52,14 @@
# endif
#endif
+/*
+ * Fix the maxiumum number of mmu modes to 16. This is larger than all current
+ * targets, and also the maximum supported by the softmmu tlb api.
+ */
+#ifndef NB_MMU_MODES
+#define NB_MMU_MODES 16
+#endif
+
#define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8)
/* target_ulong is the type of a virtual address */
--
2.39.1
- [PATCH 00/23] Fix NB_MMU_MODES to 16, Anton Johansson, 2023/03/06
- [PATCH 02/23] target/alpha: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 04/23] target/avr: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 11/23] target/microblaze: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 07/23] target/hppa: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 03/23] target/arm: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 01/23] include/exec: Set default `NB_MMU_MODES` to 16,
Anton Johansson <=
- [PATCH 06/23] target/hexagon: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 08/23] target/i386: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 19/23] target/sh4: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 10/23] target/m68k: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 18/23] target/s390x: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 17/23] target/rx: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 20/23] target/sparc: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06
- [PATCH 23/23] include/exec: Remove guards around `NB_MMU_MODES`, Anton Johansson, 2023/03/06
- [PATCH 22/23] target/xtensa: Remove `NB_MMU_MODES` define, Anton Johansson, 2023/03/06