[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 16/91] include/exec: Set default `NB_MMU_MODES` to 16
From: |
Richard Henderson |
Subject: |
[PULL v2 16/91] include/exec: Set default `NB_MMU_MODES` to 16 |
Date: |
Thu, 9 Mar 2023 12:04:35 -0800 |
From: Anton Johansson <anjo@rev.ng>
Signed-off-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230306175230.7110-2-anjo@rev.ng>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
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..7d9e1f50d8 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 number of mmu modes to 16, which is 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.34.1
- [PULL v2 01/91] target/mips: Drop tcg_temp_free from micromips_translate.c.inc, (continued)
- [PULL v2 01/91] target/mips: Drop tcg_temp_free from micromips_translate.c.inc, Richard Henderson, 2023/03/09
- [PULL v2 02/91] target/mips: Drop tcg_temp_free from msa_translate.c, Richard Henderson, 2023/03/09
- [PULL v2 07/91] target/mips: Drop tcg_temp_free from tx79_translate.c, Richard Henderson, 2023/03/09
- [PULL v2 08/91] target/mips: Drop tcg_temp_free from vr54xx_translate.c, Richard Henderson, 2023/03/09
- [PULL v2 06/91] target/mips: Drop tcg_temp_free from translate_addr_const.c, Richard Henderson, 2023/03/09
- [PULL v2 05/91] target/mips: Drop tcg_temp_free from octeon_translate.c, Richard Henderson, 2023/03/09
- [PULL v2 10/91] target/s390x: Drop free_compare, Richard Henderson, 2023/03/09
- [PULL v2 04/91] target/mips: Drop tcg_temp_free from nanomips_translate.c.inc, Richard Henderson, 2023/03/09
- [PULL v2 13/91] target/s390x: Remove assert vs g_in2, Richard Henderson, 2023/03/09
- [PULL v2 09/91] target/mips: Drop tcg_temp_free from translate.c, Richard Henderson, 2023/03/09
- [PULL v2 16/91] include/exec: Set default `NB_MMU_MODES` to 16,
Richard Henderson <=
- [PULL v2 12/91] target/s390x: Drop tcg_temp_free from translate.c, Richard Henderson, 2023/03/09
- [PULL v2 11/91] target/s390x: Drop tcg_temp_free from translate_vx.c.inc, Richard Henderson, 2023/03/09
- [PULL v2 14/91] target/s390x: Remove g_out, g_out2, g_in1, g_in2 from DisasContext, Richard Henderson, 2023/03/09
- [PULL v2 15/91] tcg: Create tcg/tcg-temp-internal.h, Richard Henderson, 2023/03/09
- [PULL v2 17/91] target/alpha: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 19/91] target/avr: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 20/91] target/cris: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 18/91] target/arm: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 21/91] target/hexagon: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09
- [PULL v2 23/91] target/i386: Remove `NB_MMU_MODES` define, Richard Henderson, 2023/03/09