]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: fix operand size of unary SSE operations
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 7 Jan 2023 17:14:20 +0000 (18:14 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 4 Oct 2023 14:41:04 +0000 (17:41 +0300)
commitc9a2d122bfc274ea4ca4a460b7a0d0ee7499190d
tree619c0ded29e2d23a63f142c3e45c24c8376b5b2a
parent8da0da879929e5b7593e8f841d8accd54b5ad511
target/i386: fix operand size of unary SSE operations

VRCPSS, VRSQRTSS and VCVTSx2Sx have a 32-bit or 64-bit memory operand,
which is represented in the decoding tables by X86_VEX_REPScalar.  Add it
to the tables, and make validate_vex() handle the case of an instruction
that is in exception type 4 without the REP prefix and exception type 5
with it; this is the cas of VRCP and VRSQRT.

Reported-by: yongwoo <https://gitlab.com/yongwoo36>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1377
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 3d304620ec6c95f31db17acc132f42f243369299)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/tcg/decode-new.c.inc