exec: Restrict 'cpu-ldst-common.h' to accel/tcg/

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2025-04-01 10:13:20 +02:00 committed by Richard Henderson
parent 4ff1b33edf
commit 231a1c0ff4
3 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@
#include "qemu/bswap.h"
#include "qemu/log.h"
#include "qemu/error-report.h"
#include "exec/cpu-ldst-common.h"
#include "accel/tcg/cpu-ldst-common.h"
#include "accel/tcg/cpu-mmu-index.h"
#include "exec/target_page.h"
#include "exec/translator.h"

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef CPU_LDST_COMMON_H
#define CPU_LDST_COMMON_H
#ifndef ACCEL_TCG_CPU_LDST_COMMON_H
#define ACCEL_TCG_CPU_LDST_COMMON_H
#ifndef CONFIG_TCG
#error Can only include this header with TCG
@ -119,4 +119,4 @@ uint32_t cpu_ldl_code_mmu(CPUArchState *env, vaddr addr,
uint64_t cpu_ldq_code_mmu(CPUArchState *env, vaddr addr,
MemOpIdx oi, uintptr_t ra);
#endif /* CPU_LDST_COMMON_H */
#endif /* ACCEL_TCG_CPU_LDST_COMMON_H */

View file

@ -67,7 +67,7 @@
#endif
#include "exec/cpu-common.h"
#include "exec/cpu-ldst-common.h"
#include "accel/tcg/cpu-ldst-common.h"
#include "accel/tcg/cpu-mmu-index.h"
#include "exec/abi_ptr.h"