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é <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230828221314.18435-6-philmd@linaro.org>
master
Philippe Mathieu-Daudé 2023-08-28 14:47:52 +02:00
parent 026ad97e07
commit dcc0f35d3f
1 changed files with 1 additions and 1 deletions

View 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"