target/i386: introduce insn_get_addr
commitefcca7ef172a6844423670aa62f93099feb58b8c
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Aug 2022 13:50:48 +0000 (23 15:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Sep 2022 13:16:00 +0000 (19 15:16 +0200)
tree595c3579c8f471e4f86f6575fc6d29ce354cdf1e
parent5c2f60bd1b6fc7164118a6270eefbf0b6dafc4ae
target/i386: introduce insn_get_addr

The "O" operand type in the Intel SDM needs to load an 8- to 64-bit
unsigned value, while insn_get is limited to 32 bits.  Extract the code
out of disas_insn and into a separate function.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c