]> git.proxmox.com Git - mirror_qemu.git/commit - tcg/aarch64/tcg-target.c.inc
tcg/aarch64: Fix tcg_out_rotl
authorYasuo Kuwahara <kwhr00@gmail.com>
Tue, 25 May 2021 09:46:19 +0000 (18:46 +0900)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 26 May 2021 22:33:59 +0000 (15:33 -0700)
commit26b1248f66c20f9d7fa384acecfdac03a0c8393d
tree99fbc61f5f8d6375879d035a383842f789311a4b
parent57dcb643d79731b08a863444d6591d22552bc2e5
tcg/aarch64: Fix tcg_out_rotl

The last argument of tcg_out_extr() must be in the range 0-31 if ext==0.
Before the fix, when m==0 it becomes 32 and it crashes with an Illegal
instruction on Apple Silicon.  After the fix, it will be 0.  If m is in
the range 1-31, it is the same as before.

Signed-off-by: Yasuo Kuwahara <kwhr00@gmail.com>
Message-Id: <CAHfJ0vSXnmnTLmT0kR=a8ACRdw_UsLYOhStzUzgVEHoH8U-7sA@mail.gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.c.inc