target/i386: allow instructions with more than one immediate
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Oct 2023 06:41:39 +0000 (08:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 May 2024 06:52:19 +0000 (08:52 +0200)
commit2666fbd271fdaae8b2956baf0a096e77c9b3c793
tree141bab9f859d53cb8ea7a6c0eb0bab29bb304de2
parent442e38c4fb9b89fb2b3c9ac3e661c93aa1dc40f9
target/i386: allow instructions with more than one immediate

While keeping decode->immediate for convenience and for 4-operand instructions,
store the immediate in X86DecodedOp as well.  This enables instructions
with more than one immediate such as ENTER.  It can also be used for far
calls and jumps.

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