target/translate: Restrict 'exec/cpu_ldst.h' to user emulation
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 28 Aug 2023 12:47:52 +0000 (14:47 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 31 Aug 2023 17:47:43 +0000 (19:47 +0200)
Only handle_sigsegv_accerr_write(), declared with user
emulation, requires "exec/cpu_ldst.h" (for the abi_ptr
typedef).

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230828221314.18435-6-philmd@linaro.org>

include/exec/exec-all.h

index d02517e95fb907defdc5ccb1a76745979bc1b20e..b2f5cd4c2a34849280424a91fce5e2e29aea3592 100644 (file)
@@ -21,7 +21,7 @@
 #define EXEC_ALL_H
 
 #include "cpu.h"
-#ifdef CONFIG_TCG
+#if defined(CONFIG_USER_ONLY)
 #include "exec/cpu_ldst.h"
 #endif
 #include "exec/translation-block.h"