]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: Generate an illegal opcode exception on cmp instructions with lock prefix
authorZiqiao Kong <ziqiaokong@gmail.com>
Thu, 15 Feb 2024 09:50:17 +0000 (17:50 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 20 Feb 2024 15:44:40 +0000 (18:44 +0300)
commit373c7193dc36c38bf85df3087fd9bc461b1435d2
treebb5bdca171056fe2b43cbf76b98d4cfa60faccd9
parent3c819d9717956c416b31aed56105190263da6a2d
target/i386: Generate an illegal opcode exception on cmp instructions with lock prefix

target/i386: As specified by Intel Manual Vol2 3-180, cmp instructions
are not allowed to have lock prefix and a `UD` should be raised. Without
this patch, s1->T0 will be uninitialized and used in the case OP_CMPL.

Signed-off-by: Ziqiao Kong <ziqiaokong@gmail.com>
Message-ID: <20240215095015.570748-2-ziqiaokong@gmail.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 99d0dcd7f102c07a510200d768cae65e5db25d23)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/tcg/translate.c