]> git.proxmox.com Git - mirror_qemu.git/commit
target/loongarch: Fix the vinsgr2vr/vpickve2gr instructions cause system coredump
authorSong Gao <gaosong@loongson.cn>
Thu, 25 May 2023 12:00:05 +0000 (20:00 +0800)
committerSong Gao <gaosong@loongson.cn>
Fri, 26 May 2023 09:21:16 +0000 (17:21 +0800)
commit65bfaaae6ac79ebc623acc0ce28cc3bd4fe8b5e5
treee85c77c95723c712515603c7157809a035b7ec52
parent2e2ca3c8fa52c03c3725edfdd726972a223b74f3
target/loongarch: Fix the vinsgr2vr/vpickve2gr instructions cause system coredump

The vinsgr2vr/vpickve2gr instructions need use get_src/get_dst to get
gpr registers value, not cpu_gpr[]. The $zero register does not
have cpu_gpr[0] allocated.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1662

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230525120005.2223413-1-gaosong@loongson.cn>
target/loongarch/insn_trans/trans_lsx.c.inc