OSDN Git Service

target/i386: Remove cur_eip, next_eip arguments to gen_interrupt
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 14:09:13 +0000 (07:09 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Oct 2022 07:36:01 +0000 (09:36 +0200)
commit8ed6c985016961625b6e1c188e93e817f398b339
tree8c7dae9730dfd093a59cb054822606899fd6870f
parent522365508ed88f3c975faae6d4d0ec64f53e14f9
target/i386: Remove cur_eip, next_eip arguments to gen_interrupt

All callers pass s->base.pc_next and s->pc, which we can just as
well compute within the function.  Adjust to use tcg_constant_i32
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-5-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c