From 405c02d85de283dfe44560ae05db909d1f0cfd45 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 27 Aug 2023 18:58:15 -0700 Subject: plugin: Simplify struct qemu_plugin_hwaddr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Richard Henderson --- include/qemu/plugin-memory.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'include/qemu/plugin-memory.h') 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; }; /** -- cgit 1.4.1