diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2026-04-30 10:37:59 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2026-05-12 22:35:54 +0200 |
| commit | 3bccc4391804b731fe0587ce29bc3f58c9cd5287 (patch) | |
| tree | 5238e01661f488c2aeafabdf35aa0b2199f2bd07 /plugins | |
| parent | 916acc253262cdf376c05478b65639f2ab5f8e2d (diff) | |
| download | qemu-3bccc4391804b731fe0587ce29bc3f58c9cd5287.tar.gz qemu-3bccc4391804b731fe0587ce29bc3f58c9cd5287.zip | |
plugins/api.c: Trust cpu_get_phys_addr_debug() return address
In qemu_plugin_translate_vaddr() we have a workaround for not all
implementations of get_phys_addr_debug returning an exact physaddr
for the input virtual address: we OR back in the page offset to the
return value.
Now that we guarantee that get_phys_addr_debug returns the exact
physaddr for the input virtual address, we can drop this workaround.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260417173105.1648172-14-peter.maydell@linaro.org
Message-ID: <20260430093810.2762539-15-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/api.c b/plugins/api.c index 4b6fad4999..c97cc68882 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -625,7 +625,7 @@ bool qemu_plugin_translate_vaddr(uint64_t vaddr, uint64_t *hwaddr) return false; } - *hwaddr = res | (vaddr & ~TARGET_PAGE_MASK); + *hwaddr = res; return true; #else |
