]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: fix xsave.flat from kvm-unit-tests
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2024 10:01:12 +0000 (12:01 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 6 Jun 2024 11:14:19 +0000 (14:14 +0300)
commit0ab2229daa782c857522e3a8304aac5806c55f97
tree561190959c33d3b83c12e74e0152695d4e852192
parent9075bc0bdda0840ff1d6ea3ad8b340a47c431100
target/i386: fix xsave.flat from kvm-unit-tests

xsave.flat checks that "executing the XSETBV instruction causes a general-
protection fault (#GP) if ECX = 0 and EAX[2:1] has the value 10b".  QEMU allows
that option, so the test fails.  Add the condition.

Cc: qemu-stable@nongnu.org
Fixes: 892544317fe ("target/i386: implement XSAVE and XRSTOR of AVX registers", 2022-10-18)
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 7604bbc2d87d153e65e38cf2d671a5a9a35917b1)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/tcg/fpu_helper.c