target/i386: Create cur_insn_len, cur_insn_len_i32
commitad1d6f072d02e99114ea28d674131459b9c70897
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 14:09:20 +0000 (1 07:09 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Oct 2022 07:36:01 +0000 (11 09:36 +0200)
treef179e311fe0a9644be1e702c61fd555b72ef2243
parent6424ac8eec7d5e20a0ed6be1031108ca167299e4
target/i386: Create cur_insn_len, cur_insn_len_i32

Create common routines for computing the length of the insn.
Use tcg_constant_i32 in the new function, while we're at it.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221001140935.465607-12-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c