[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 01/25] target/nios2: Fix 64-bit ilp32 compilation
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v6 01/25] target/nios2: Fix 64-bit ilp32 compilation |
Date: |
Tue, 2 May 2017 12:22:36 -0700 |
Avoid a "cast from pointer to integer of different size" warning
by using the proper host type.
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/nios2/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/nios2/translate.c b/target/nios2/translate.c
index cfec479..2f3c2e5 100644
--- a/target/nios2/translate.c
+++ b/target/nios2/translate.c
@@ -164,7 +164,7 @@ static void gen_goto_tb(DisasContext *dc, int n, uint32_t
dest)
if (use_goto_tb(dc, dest)) {
tcg_gen_goto_tb(n);
tcg_gen_movi_tl(dc->cpu_R[R_PC], dest);
- tcg_gen_exit_tb((tcg_target_long)tb + n);
+ tcg_gen_exit_tb((uintptr_t)tb + n);
} else {
tcg_gen_movi_tl(dc->cpu_R[R_PC], dest);
tcg_gen_exit_tb(0);
--
2.9.3
- [Qemu-devel] [PATCH v6 00/25] tcg cross-tb optimizations, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 01/25] target/nios2: Fix 64-bit ilp32 compilation,
Richard Henderson <=
- [Qemu-devel] [PATCH v6 02/25] tcg/sparc: Use the proper compilation flags for 32-bit, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 03/25] qemu/atomic: Loosen restrictions for 64-bit ILP32 hosts, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 05/25] tcg/i386: implement goto_ptr, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 06/25] target/arm: optimize cross-page direct jumps in softmmu, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 07/25] target/arm: optimize indirect branches, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 04/25] tcg: Introduce goto_ptr opcode and tcg_gen_lookup_and_goto_ptr, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 09/25] target/i386: optimize cross-page direct jumps in softmmu, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 08/25] target/i386: introduce gen_jr helper to generate lookup_and_goto_ptr, Richard Henderson, 2017/05/02
- [Qemu-devel] [PATCH v6 10/25] target/i386: optimize indirect branches, Richard Henderson, 2017/05/02