diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-08-27 18:58:15 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-09-16 14:57:15 +0000 |
| commit | 405c02d85de283dfe44560ae05db909d1f0cfd45 (patch) | |
| tree | ca722efddd47d515afbcf0aa177b1f21973cad19 /include/qemu/plugin-memory.h | |
| parent | 0e1144400fc390c0b6c37c252e95961cfab1dde9 (diff) | |
| download | focaccia-qemu-405c02d85de283dfe44560ae05db909d1f0cfd45.tar.gz focaccia-qemu-405c02d85de283dfe44560ae05db909d1f0cfd45.zip | |
plugin: Simplify struct qemu_plugin_hwaddr
Rather than saving MemoryRegionSection and offset, save phys_addr and MemoryRegion. This matches up much closer with the plugin api. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/qemu/plugin-memory.h')
| -rw-r--r-- | include/qemu/plugin-memory.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/qemu/plugin-memory.h b/include/qemu/plugin-memory.h index 43165f2452..71c1123308 100644 --- a/include/qemu/plugin-memory.h +++ b/include/qemu/plugin-memory.h @@ -15,15 +15,8 @@ struct qemu_plugin_hwaddr { bool is_io; bool is_store; - union { - struct { - MemoryRegionSection *section; - hwaddr offset; - } io; - struct { - void *hostaddr; - } ram; - } v; + hwaddr phys_addr; + MemoryRegion *mr; }; /** |