exec/cpu-common.h: Avoid including unused 'tcg/debug-assert.h' header
Since commit efe25c260cd ("include/exec: Split out accel/tcg/cpu-mmu-index.h") the "exec/cpu-common.h" isn't using anything defined in "tcg/debug-assert.h". Include it in target/loongarch/tcg/tcg_cpu.c however, where it is required but included indirectly, otherwise we'd get: target/loongarch/tcg/tcg_cpu.c:291:5: error: call to undeclared function 'tcg_debug_assert' 291 | tcg_debug_assert(!tcg_cflags_has(cs, CF_PCREL)); | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260617160426.64461-5-philmd@oss.qualcomm.com>
Philippe Mathieu-Daudé committed
Jun 17, 2026 at 08:16 UTC
8f015153805a081039150509ff36c8a5798982bf
2 files changed
+1
-1
include/exec/cpu-common.h
-1
@@ -10,7 +10,6 @@
10
11
#include "qemu/thread.h"
12
#include "hw/core/cpu.h"
13
-#include "tcg/debug-assert.h"
13
#include "exec/page-protection.h"
14
15
#define EXCP_INTERRUPT 0x10000 /* async interruption */
target/loongarch/tcg/tcg_cpu.c
+1
@@ -13,6 +13,7 @@
13
#include "accel/tcg/cpu-ops.h"
14
#include "exec/translation-block.h"
15
#include "exec/target_page.h"
16
+#include "tcg/debug-assert.h"
17
#include "tcg_loongarch.h"
18
#include "internals.h"
19