From: Philippe Mathieu-Daudé Date: Mon, 28 Aug 2023 12:47:52 +0000 (+0200) Subject: target/translate: Restrict 'exec/cpu_ldst.h' to user emulation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dcc0f35d3fdb32a61bc1e93234ba8c079ec8379a;p=qemu.git target/translate: Restrict 'exec/cpu_ldst.h' to user emulation 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é Reviewed-by: Richard Henderson Message-Id: <20230828221314.18435-6-philmd@linaro.org> --- diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index d02517e95f..b2f5cd4c2a 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -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"