include: Don't include guest-host.h in cpu-ldst.h

We currently include user/guest-host.h from accel/tcg/cpu-ldst.h.
However that file doesn't need anything from guest-host.h, since we
removed the uses of g2h() in commit 9b74d403b3 ("accel/tcg: Move
user-only tlb_vaddr_to_host out of line").

Move the include of guest-host.h to where it's actually needed.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260330143123.1685142-2-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
Peter Maydell
2026-03-30 15:31:22 +01:00
parent 6aeb397deb
commit ad7a005d67
3 changed files with 2 additions and 4 deletions

View File

@@ -27,6 +27,7 @@
#include "user/abitypes.h"
#include "user/cpu_loop.h"
#include "user/page-protection.h"
#include "user/guest-host.h"
extern char **environ;

View File

@@ -71,10 +71,6 @@
#include "accel/tcg/cpu-mmu-index.h"
#include "exec/abi_ptr.h"
#if defined(CONFIG_USER_ONLY)
#include "user/guest-host.h"
#endif /* CONFIG_USER_ONLY */
static inline uint32_t
cpu_ldub_mmuidx_ra(CPUArchState *env, abi_ptr addr, int mmu_idx, uintptr_t ra)
{

View File

@@ -10,6 +10,7 @@
#include "syscall_defs.h"
#include "target_syscall.h"
#include "accel/tcg/vcpu-state.h"
#include "user/guest-host.h"
/*
* This is the size of the host kernel's sigset_t, needed where we make