1
0
mirror of https://gitlab.com/qemu-project/qemu synced 2024-07-05 17:29:18 +00:00
qemu/tcg/loongarch64
Richard Henderson 521d7fb3eb tcg/loongarch64: Fix tcg_out_movi vs some pcrel pointers
Simplify the logic for two-part, 32-bit pc-relative addresses.
Rather than assume all such fit in int32_t, do some arithmetic
and assert a result, do some arithmetic first and then check
to see if the pieces are in range.

Cc: qemu-stable@nongnu.org
Fixes: dacc51720d ("tcg/loongarch64: Implement tcg_out_mov and tcg_out_movi")
Reviewed-by: Song Gao <gaosong@loongson.cn>
Reported-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2024-06-19 13:50:22 -07:00
..
tcg-insn-defs.c.inc tcg/loongarch64: Import LASX, FP insns 2024-06-19 10:55:12 -07:00
tcg-target-con-set.h tcg/loongarch64: Use C_N2_I1 for INDEX_op_qemu_ld_a*_i128 2023-11-06 08:27:21 -08:00
tcg-target-con-str.h tcg/loongarch64: Lower add/sub_vec to vadd/vsub 2023-09-15 05:26:51 -07:00
tcg-target-reg-bits.h tcg: Split out tcg-target-reg-bits.h 2023-06-05 12:04:28 -07:00
tcg-target.c.inc tcg/loongarch64: Fix tcg_out_movi vs some pcrel pointers 2024-06-19 13:50:22 -07:00
tcg-target.h tcg/loongarch64: Enable v256 with LASX 2024-06-19 12:47:08 -07:00
tcg-target.opc.h tcg/loongarch64: Lower basic tcg vec ops to LSX 2023-09-15 05:26:50 -07:00