target/i386: clean up AAM/AAD
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 May 2024 12:39:12 +0000 (14:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 May 2024 13:53:30 +0000 (15:53 +0200)
commitec56891984e682c0e6a7bbf5a51372648a60a353
tree28346b44a7afd359f494a88fd6e5af5e56aa33c5
parentd0414d71f612651699de019b911a772b07d0ac4a
target/i386: clean up AAM/AAD

The 32-bit AAM/AAD opcodes are using helpers that read and write flags and
env->regs[R_EAX].  Clean them up so that the table correctly includes AX
as a 16-bit input and output.

No real reason to do it to be honest, but they are nice one-output helpers
and it removes the masking of env->regs[R_EAX] that generic load/writeback
code already does.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240522123912.608497-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/helper.h
target/i386/tcg/decode-new.c.inc
target/i386/tcg/emit.c.inc
target/i386/tcg/int_helper.c