[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 45/59] accel/tcg: Use target_long_bits() in translate-all.c
From: |
Richard Henderson |
Subject: |
[PULL 45/59] accel/tcg: Use target_long_bits() in translate-all.c |
Date: |
Thu, 1 May 2025 14:20:59 -0700 |
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
accel/tcg/translate-all.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index acf32e6c08..6b6e10be9d 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -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;
--
2.43.0
- [PULL 47/59] accel/tcg: Build tcg-all.c twice, (continued)
- [PULL 47/59] accel/tcg: Build tcg-all.c twice, Richard Henderson, 2025/05/01
- [PULL 50/59] accel/tcg: Move tlb_vaddr_to_host declaration to probe.h, Richard Henderson, 2025/05/01
- [PULL 51/59] accel/tcg: Use target_long_bits() in cputlb.c, Richard Henderson, 2025/05/01
- [PULL 41/59] qemu/target_info: Add %target_cpu_type field to TargetInfo, Richard Henderson, 2025/05/01
- [PULL 46/59] accel/tcg: Build translate-all.c twice, Richard Henderson, 2025/05/01
- [PULL 49/59] accel/tcg: Move user-only tlb_vaddr_to_host out of line, Richard Henderson, 2025/05/01
- [PULL 52/59] accel/tcg: Use vaddr for plugin_{load,store}_cb, Richard Henderson, 2025/05/01
- [PULL 53/59] accel/tcg: Build cputlb.c once, Richard Henderson, 2025/05/01
- [PULL 55/59] include/user: Use vaddr in guest-host.h, Richard Henderson, 2025/05/01
- [PULL 56/59] accel/tcg: Move TARGET_TAGGED_ADDRESSES to TCGCPUOps.untagged_addr, Richard Henderson, 2025/05/01
- [PULL 45/59] accel/tcg: Use target_long_bits() in translate-all.c,
Richard Henderson <=
- [PULL 48/59] accel/tcg: Use vaddr in cpu_loop.h, Richard Henderson, 2025/05/01
- [PULL 54/59] include/user: Convert GUEST_ADDR_MAX to a variable, Richard Henderson, 2025/05/01
- [PULL 58/59] accel/tcg: Avoid abi_ptr in user-exec.c, Richard Henderson, 2025/05/01
- [PULL 57/59] accel/tcg: Remove TARGET_PAGE_DATA_SIZE, Richard Henderson, 2025/05/01
- [PULL 59/59] accel/tcg: Build user-exec.c once, Richard Henderson, 2025/05/01
- Re: [PULL 00/59] tcg patch queue, Stefan Hajnoczi, 2025/05/05