target/i386: reimplement check for validity of LOCK prefix
commitb609db947752f0cc48471127d2abaff444dc836b
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Oct 2023 12:22:53 +0000 (19 14:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Dec 2023 21:03:08 +0000 (29 22:03 +0100)
treeacaf0595442fe5abf6c9f9674898e2d368ef90e7
parent8147df44daea383256964d2aeeed14bcfc8f63ce
target/i386: reimplement check for validity of LOCK prefix

The previous check erroneously allowed CMP to be modified with LOCK.
Instead, tag explicitly the instructions that do support LOCK.

Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/decode-new.c.inc
target/i386/tcg/decode-new.h
target/i386/tcg/emit.c.inc