qemu-s390x
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 06/24] target/rx/cpu: Include missing 'exec/translation-block


From: Richard Henderson
Subject: Re: [PATCH 06/24] target/rx/cpu: Include missing 'exec/translation-block.h' header
Date: Thu, 14 Nov 2024 10:43:29 -0800
User-agent: Mozilla Thunderbird

On 11/13/24 17:12, Philippe Mathieu-Daudé wrote:
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(+)


Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

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"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]