]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: convert CMPXCHG8B/CMPXCHG16B to new decoder
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 Jun 2024 08:39:00 +0000 (10:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Oct 2024 17:41:29 +0000 (19:41 +0200)
commitfcd16539ebfe2c9e4cd568e6ce5da566a027a524
tree15b2a3d9d0cbfb1fbb015fef2dfe5e4c3af218d8
parenta2e2c78d2af0cfcc3d59542e70503c56d9ae7369
target/i386: convert CMPXCHG8B/CMPXCHG16B to new decoder

The gen_cmpxchg8b and gen_cmpxchg16b functions even have the correct
prototype already; the only thing that needs to be done is removing the
gen_lea_modrm() call.

This moves the last LOCK-enabled instructions to the new decoder.  It is
now possible to assume that gen_multi0F is called only after checking
that PREFIX_LOCK was not specified.

Reviewed-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
target/i386/tcg/translate.c