[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/24] target/rx/cpu: Include missing 'exec/translation-block.h'
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 06/24] target/rx/cpu: Include missing 'exec/translation-block.h' header |
Date: |
Thu, 14 Nov 2024 02:12:51 +0100 |
The TranslationBlock structure is declared in
"exec/translation-block.h", along with the TB
compile flag definitions. Include the header
in order to avoid when refactoring:
target/rx/cpu.c:50:42: error: use of undeclared identifier 'CF_PCREL'
50 | tcg_debug_assert(!tcg_cflags_has(cs, CF_PCREL));
| ^
target/rx/cpu.c:51:21: error: incomplete definition of type 'struct
TranslationBlock'
51 | cpu->env.pc = tb->pc;
| ~~^
include/qemu/typedefs.h:116:16: note: forward declaration of 'struct
TranslationBlock'
116 | typedef struct TranslationBlock TranslationBlock;
| ^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/rx/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/rx/cpu.c b/target/rx/cpu.c
index 65a74ce720..945ae6e9e5 100644
--- a/target/rx/cpu.c
+++ b/target/rx/cpu.c
@@ -23,6 +23,7 @@
#include "migration/vmstate.h"
#include "exec/exec-all.h"
#include "exec/page-protection.h"
+#include "exec/translation-block.h"
#include "hw/loader.h"
#include "fpu/softfloat.h"
#include "tcg/debug-assert.h"
--
2.45.2
[PATCH 04/24] accel/tcg: Include missing 'exec/translation-block.h' header, Philippe Mathieu-Daudé, 2024/11/13
[PATCH 05/24] target/i386/helper: Include missing 'exec/translation-block.h' header, Philippe Mathieu-Daudé, 2024/11/13
[PATCH 06/24] target/rx/cpu: Include missing 'exec/translation-block.h' header,
Philippe Mathieu-Daudé <=
[PATCH 07/24] system/watchpoint: Include missing 'exec/cpu-all.h' header, Philippe Mathieu-Daudé, 2024/11/13
[PATCH 08/24] linux-user/aarch64/mte: Include missing 'user/abitypes.h' header, Philippe Mathieu-Daudé, 2024/11/13
[PATCH 09/24] target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation, Philippe Mathieu-Daudé, 2024/11/13