diff options
author | David Hildenbrand <david@redhat.com> | 2025-02-10 09:46:47 +0100 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2025-02-12 11:33:13 -0500 |
commit | 425ce9b37b98799b46cd0bed0df3dc3af25ba57a (patch) | |
tree | db27c48fcf884672d1d700216e154fb6a654404f | |
parent | d732b5a4ac3e8222e9527654f067bb766fdaecb6 (diff) | |
download | qemu-425ce9b37b98799b46cd0bed0df3dc3af25ba57a.zip qemu-425ce9b37b98799b46cd0bed0df3dc3af25ba57a.tar.gz qemu-425ce9b37b98799b46cd0bed0df3dc3af25ba57a.tar.bz2 |
hmp: use cpu_get_phys_page_debug() in hmp_gva2gpa()
We don't need the MemTxAttrs, so let's simply use the simpler function
variant.
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20250210084648.33798-7-david@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
-rw-r--r-- | monitor/hmp-cmds-target.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/monitor/hmp-cmds-target.c b/monitor/hmp-cmds-target.c index 27ffe61..239c2a6 100644 --- a/monitor/hmp-cmds-target.c +++ b/monitor/hmp-cmds-target.c @@ -301,7 +301,6 @@ void hmp_gpa2hva(Monitor *mon, const QDict *qdict) void hmp_gva2gpa(Monitor *mon, const QDict *qdict) { target_ulong addr = qdict_get_int(qdict, "addr"); - MemTxAttrs attrs; CPUState *cs = mon_get_cpu(mon); hwaddr gpa; @@ -310,7 +309,7 @@ void hmp_gva2gpa(Monitor *mon, const QDict *qdict) return; } - gpa = cpu_get_phys_page_attrs_debug(cs, addr & TARGET_PAGE_MASK, &attrs); + gpa = cpu_get_phys_page_debug(cs, addr & TARGET_PAGE_MASK); if (gpa == -1) { monitor_printf(mon, "Unmapped\n"); } else { |