diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-01-18 20:38:46 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-01-25 16:02:25 +0100 |
commit | 2097dca6d3a30b80ac5a6232f518548d5ae644a9 (patch) | |
tree | 281a18487e27d8f35cb4fcafcd3582815bb11862 /target/m68k/cpu.h | |
parent | e55886c3340c3a3f1267a3a3d42082008bb255fb (diff) |
target/m68k: add HMP command "info tlb"
Dump MMU state and address mappings.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180118193846.24953-8-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/cpu.h')
-rw-r--r-- | target/m68k/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h index 0739c3f5c8..627fb787b6 100644 --- a/target/m68k/cpu.h +++ b/target/m68k/cpu.h @@ -316,6 +316,7 @@ typedef enum { #define M68K_DESC_GLOBAL 0x00000400 #define M68K_DESC_URESERVED 0x00000800 +#define M68K_ROOT_POINTER_ENTRIES 128 #define M68K_4K_PAGE_MASK (~0xff) #define M68K_POINTER_BASE(entry) (entry & ~0x1ff) #define M68K_ROOT_INDEX(addr) ((address >> 23) & 0x1fc) @@ -329,6 +330,8 @@ typedef enum { #define M68K_PDT_VALID(entry) (entry & 3) #define M68K_PDT_INDIRECT(entry) ((entry & 3) == 2) #define M68K_INDIRECT_POINTER(addr) (addr & ~3) +#define M68K_TTS_POINTER_SHIFT 18 +#define M68K_TTS_ROOT_SHIFT 25 /* bits for 68040 MMU Transparent Translation Registers */ #define M68K_TTR_ADDR_BASE 0xff000000 @@ -571,4 +574,5 @@ static inline void cpu_get_tb_cpu_state(CPUM68KState *env, target_ulong *pc, } } +void dump_mmu(FILE *f, fprintf_function cpu_fprintf, CPUM68KState *env); #endif |