]> git.proxmox.com Git - mirror_qemu.git/commit
target/mips: Fix msa checking condition in trans_msa_elm_fn()
authorNi Hui <shuizhuyuanluo@126.com>
Tue, 3 May 2022 13:07:07 +0000 (21:07 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 11 Jun 2022 09:34:12 +0000 (11:34 +0200)
commit4b532b4f2be28525fd181e43afe13416c462b135
tree1bf2c90c001a0dc6bc9677bd8a3491352fbca7d9
parent7fc235c67f6c136ceba2305bcf2609c46a74620d
target/mips: Fix msa checking condition in trans_msa_elm_fn()

Fix issue that condition of check_msa_enabled(ctx) is reversed
that causes segfault when msa elm_fn op encountered.

Fixes: 2f2745c81a ("target/mips: Convert MSA COPY_U opcode to decodetree")
Fixes: 97fe675519 ("target/mips: Convert MSA COPY_S and INSERT opcodes to decodetree")
Signed-off-by: Ni Hui <shuizhuyuanluo@126.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220503130708.272850-3-shuizhuyuanluo@126.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
target/mips/tcg/msa_translate.c