]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Use target_long_bits() in translate-all.c
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 30 Apr 2025 21:40:30 +0000 (14:40 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 1 May 2025 14:38:09 +0000 (07:38 -0700)
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translate-all.c

index acf32e6c08f039e1d15e65e43744dc3395d22189..6b6e10be9d787f22bafe6d8d1f672fc52abf8048 100644 (file)
@@ -54,6 +54,7 @@
 #include "qemu/qemu-print.h"
 #include "qemu/main-loop.h"
 #include "qemu/cacheinfo.h"
+#include "qemu/target-info.h"
 #include "qemu/timer.h"
 #include "exec/log.h"
 #include "exec/icount.h"
@@ -343,7 +344,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, TCGTBCPUState s)
     }
 
     tcg_ctx->gen_tb = tb;
-    tcg_ctx->addr_type = TARGET_LONG_BITS == 32 ? TCG_TYPE_I32 : TCG_TYPE_I64;
+    tcg_ctx->addr_type = target_long_bits() == 32 ? TCG_TYPE_I32 : TCG_TYPE_I64;
 #ifdef CONFIG_SOFTMMU
     tcg_ctx->page_bits = TARGET_PAGE_BITS;
     tcg_ctx->page_mask = TARGET_PAGE_MASK;