sysemu/memory_mapping: Become target-agnostic
commit4e27e765419818f3f20d3a86dc1baa6e419ace96
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 16 May 2021 17:59:38 +0000 (16 19:59 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 6 Mar 2022 12:15:42 +0000 (6 13:15 +0100)
treee2c5a7f675e0d2a64561ba195f993b1da8600649
parent73842ef04a1fd2eedb2b4031de671dc1a92862bc
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>
include/sysemu/memory_mapping.h
softmmu/memory_mapping.c