Add a MMU_INDEX() helper to specify which MMU entry to use.
Currently this is just an 1:1 mapper, but in a follow-up
patch it will enable us to generate smaller (and maybe faster)
tcg code.
Signed-off-by: Helge Deller <deller@gmx.de>
---
include/exec/cpu-defs.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
index fb4c8d480f..07bcdd38b2 100644
--- a/include/exec/cpu-defs.h
+++ b/include/exec/cpu-defs.h
@@ -60,6 +60,11 @@
*/
#define NB_MMU_MODES 16
+/*
+ * MMU_INDEX() helper to specify MMU index.
+ */
+#define MMU_INDEX(n) (n)
+
#if defined(CONFIG_SOFTMMU) && defined(CONFIG_TCG)
#include "exec/tlb-common.h"
--
2.41.0