[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 21/24] exec/cpu_ldst: Avoid including 'cpu.h'
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 21/24] exec/cpu_ldst: Avoid including 'cpu.h' |
Date: |
Mon, 11 Dec 2023 22:19:58 +0100 |
"exec/cpu_ldst.h" doesn't need to huge "cpu.h" header,
but simply:
- exec/cpu-defs.h
- exec/tlb-common.h
- exec/user/abitypes.h
- exec/user/guest-base.h
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/exec/cpu_ldst.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h
index c69f02b699..a115553ee8 100644
--- a/include/exec/cpu_ldst.h
+++ b/include/exec/cpu_ldst.h
@@ -64,11 +64,15 @@
#include "exec/memopidx.h"
#include "qemu/int128.h"
-#include "cpu.h"
+#include "exec/cpu-defs.h"
+#include "exec/tlb-common.h"
#include "tcg/abi_ptr.h"
#if defined(CONFIG_USER_ONLY)
+#include "exec/user/abitypes.h"
+#include "exec/user/guest-base.h"
+
#ifndef TARGET_TAGGED_ADDRESSES
static inline abi_ptr cpu_untagged_addr(CPUState *cs, abi_ptr x)
{
--
2.41.0
- [PATCH 18/24] accel/tcg: Un-inline retaddr helpers to 'user-retaddr.h', (continued)
- [PATCH 20/24] exec: Declare abi_ptr type in its own 'tcg/abi_ptr.h' header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 21/24] exec/cpu_ldst: Avoid including 'cpu.h',
Philippe Mathieu-Daudé <=
- [PATCH 22/24] exec/cpu-all: Restrict inclusion of 'exec/user/guest-base.h', Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 23/24] exec/cpu-all: Extract page-protection definitions to page-prot-common.h, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 24/24] target: Restrict 'sysemu/reset.h' to system emulation, Philippe Mathieu-Daudé, 2023/12/11