mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
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>
This commit is contained in:
@ -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 = "",
|
||||
|
Reference in New Issue
Block a user