]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: Fix BEXTR instruction
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 14 Jan 2023 23:05:42 +0000 (13:05 -1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commit8d3c9fc4392cebe8cf19487d88ce1c68372b6a07
treef5507af46eda463193fa534c90e07403191ac4f0
parent93ff84d4c0b78ece4dba688cf2d2db6e1a3945f4
target/i386: Fix BEXTR instruction

There were two problems here: not limiting the input to operand bits,
and not correctly handling large extraction length.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1372
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230114230542.3116013-3-richard.henderson@linaro.org>
Cc: qemu-stable@nongnu.org
Fixes: 1d0b926150e5 ("target/i386: move scalar 0F 38 and 0F 3A instruction to new decoder", 2022-10-18)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit b14c0098975264ed03144f145bca0179a6763a07)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/tcg/emit.c.inc
tests/tcg/i386/test-i386-bmi2.c