aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-05-16 19:59:38 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-03-06 13:15:42 +0100
commit4e27e765419818f3f20d3a86dc1baa6e419ace96 (patch)
treee2c5a7f675e0d2a64561ba195f993b1da8600649 /softmmu
parent73842ef04a1fd2eedb2b4031de671dc1a92862bc (diff)
downloadqemu-4e27e765419818f3f20d3a86dc1baa6e419ace96.zip
qemu-4e27e765419818f3f20d3a86dc1baa6e419ace96.tar.gz
qemu-4e27e765419818f3f20d3a86dc1baa6e419ace96.tar.bz2
sysemu/memory_mapping: Become target-agnostic
target_ulong is target-specific, while vaddr isn't. Remove the unnecessary "exec/cpu-defs.h" target-speficic header from "memory_mapping.h" and use the target-agnostic "hw/core/cpu.h" locally in memory_mapping.c. Remove "exec/memory.h" since MemoryRegion is forward-declared in "qemu/typedefs.h". Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220207075426.81934-6-f4bug@amsat.org>
Diffstat (limited to 'softmmu')
-rw-r--r--softmmu/memory_mapping.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/softmmu/memory_mapping.c b/softmmu/memory_mapping.c
index a62eaa4..8320165 100644
--- a/softmmu/memory_mapping.c
+++ b/softmmu/memory_mapping.c
@@ -17,6 +17,7 @@
#include "sysemu/memory_mapping.h"
#include "exec/memory.h"
#include "exec/address-spaces.h"
+#include "hw/core/cpu.h"
//#define DEBUG_GUEST_PHYS_REGION_ADD