riscv: hmp: Add a command to show virtual memory mappings
commitdf42fdd6cc0df027d6f52b9abbd9cddac8f7c453
authorBin Meng <bmeng.cn@gmail.com>
Wed, 14 Aug 2019 15:33:32 +0000 (14 08:33 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 17 Sep 2019 15:42:43 +0000 (17 08:42 -0700)
treed98caeaeb1d7811b14bd11b15dc90bf0f09875f5
parent49dd180e4f3e0af8ab8a54fec5058b6cd89e5942
riscv: hmp: Add a command to show virtual memory mappings

This adds 'info mem' command for RISC-V, to show virtual memory
mappings that aids debugging.

Rather than showing every valid PTE, the command compacts the
output by merging all contiguous physical address mappings into
one block and only shows the merged block mapping details.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hmp-commands-info.hx
target/riscv/Makefile.objs
target/riscv/monitor.c [new file with mode: 0644]