Signed-off-by: Richard Henderson <[email protected]>
---
include/hw/core/cpu.h | 1 +
accel/tcg/cputlb.c | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index c4c86b8595..3d48bc81f2 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -197,6 +197,7 @@ struct CPUClass {
* Current maximum is target/arm/.
*/
#define NB_MMU_MODES 22
+#define ALL_MMUIDX_BITS ((1 << NB_MMU_MODES) - 1)
typedef uint32_t MMUIdxMap;
/* Use a fully associative victim tlb of 8 entries. */
diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c
index e2911e3aac..695476eef1 100644
--- a/accel/tcg/cputlb.c
+++ b/accel/tcg/cputlb.c
@@ -91,8 +91,6 @@
*/
QEMU_BUILD_BUG_ON(sizeof(vaddr) > sizeof(run_on_cpu_data));
-#define ALL_MMUIDX_BITS ((1 << NB_MMU_MODES) - 1)
-
static inline size_t tlb_n_entries(CPUTLBDescFast *fast)
{
return (fast->mask >> CPU_TLB_ENTRY_BITS) + 1;
--
2.43.0