aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-06 16:11:15 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-26 15:31:37 +0200
commit3aac8abaca536db275da671db088fef2dd82536d (patch)
tree25f6c47845dd45bf3030b197cc9928de65e62dcb /include
parent0654c79416f346d967fbc7dad7ca451b49bbd822 (diff)
downloadqemu-3aac8abaca536db275da671db088fef2dd82536d.zip
qemu-3aac8abaca536db275da671db088fef2dd82536d.tar.gz
qemu-3aac8abaca536db275da671db088fef2dd82536d.tar.bz2
semihosting/uaccess: Avoid including 'cpu.h'
"semihosting/uaccess.h" only requires the following headers: - "exec/cpu-defs.h" for target_ulong, - "exec/cpu-common.h" for cpu_memory_rw_debug() - "exec/tswap.h" for tswap32() and tswap64(). Include them instead of the huge "cpu.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <42c6471e-8383-45e0-85ee-e20ca32ecbad@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/semihosting/uaccess.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/semihosting/uaccess.h b/include/semihosting/uaccess.h
index 3963eaf..dd289af 100644
--- a/include/semihosting/uaccess.h
+++ b/include/semihosting/uaccess.h
@@ -14,7 +14,9 @@
#error Cannot include semihosting/uaccess.h from user emulation
#endif
-#include "cpu.h"
+#include "exec/cpu-common.h"
+#include "exec/cpu-defs.h"
+#include "exec/tswap.h"
#define get_user_u64(val, addr) \
({ uint64_t val_ = 0; \