This adds hmp 'info tlb' command support for the arm platform. The limitation is that this only implements a page walker for ARMv8-A AArch64 Long Descriptor format, 32bit addressing is not supported yet.
To reuse existing code, this patch also extracts some APIs from helper.c, including regime_translation_disabled(), pt_start_level_stage1(), regime_ttbr(), arm_ldq_ptw(). --- v4: Dividing the patch into two parts. Removed some of the previously described problems by switching to arm_ldq_ptw(). v3: rebase to latest mainline. v2: o fix coding style o extract common code pt_start_level_stage1() --- Signed-off-by: Changbin Du <changbin...@gmail.com> Signed-off-by: Ivanov Arkady <arkaisp2...@gmail.com> --- Ivanov Arkady (2): target/arm: Refactoring MMU helper function arm/monitor: Add support for 'info tlb' command hmp-commands-info.hx | 3 + target/arm/helper.c | 35 +--------- target/arm/internals.h | 39 +++++++++++ target/arm/monitor.c | 170 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 214 insertions(+), 33 deletions(-) -- Ivanov Arkady