summaryrefslogtreecommitdiffstats
path: root/hmp-commands-info.hx
diff options
context:
space:
mode:
authorBin Meng2019-08-14 17:33:32 +0200
committerPalmer Dabbelt2019-09-17 17:42:43 +0200
commitdf42fdd6cc0df027d6f52b9abbd9cddac8f7c453 (patch)
treed98caeaeb1d7811b14bd11b15dc90bf0f09875f5 /hmp-commands-info.hx
parentriscv: Resolve full path of the given bios image (diff)
downloadqemu-df42fdd6cc0df027d6f52b9abbd9cddac8f7c453.tar.gz
qemu-df42fdd6cc0df027d6f52b9abbd9cddac8f7c453.tar.xz
qemu-df42fdd6cc0df027d6f52b9abbd9cddac8f7c453.zip
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>
Diffstat (limited to 'hmp-commands-info.hx')
-rw-r--r--hmp-commands-info.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
index c59444c461..257ee7d7a3 100644
--- a/hmp-commands-info.hx
+++ b/hmp-commands-info.hx
@@ -249,7 +249,7 @@ STEXI
Show virtual to physical memory mappings.
ETEXI
-#if defined(TARGET_I386)
+#if defined(TARGET_I386) || defined(TARGET_RISCV)
{
.name = "mem",
.args_type = "",