]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Remove avail_64 in trans_srai_w() and simplify it
authorFeiyang Chen <chris.chenfeiyang@gmail.com>
Fri, 28 Jun 2024 03:33:57 +0000 (13:33 +1000)
committerSong Gao <gaosong@loongson.cn>
Fri, 12 Jul 2024 01:41:18 +0000 (09:41 +0800)
commit785875874da1f419c09016b0fcea5e756caaa00c
tree9d47ab93745c527717224ce3cc944c51a7e4e6e4
parentd38e31ef740d102020d1b14b5a2becd4336b462d
target/loongarch: Remove avail_64 in trans_srai_w() and simplify it

Since srai.w is a valid instruction on la32, remove the avail_64 check
and simplify trans_srai_w().

Fixes: c0c0461e3a06 ("target/loongarch: Add avail_64 to check la64-only instructions")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Feiyang Chen <chris.chenfeiyang@gmail.com>
Message-Id: <20240628033357.50027-1-chris.chenfeiyang@gmail.com>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/tcg/insn_trans/trans_shift.c.inc