OSDN Git Service

target/i386: Remove cur_eip argument to gen_exception
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 14:09:12 +0000 (07:09 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Oct 2022 07:36:01 +0000 (09:36 +0200)
commit522365508ed88f3c975faae6d4d0ec64f53e14f9
treec9b42f3432308f2f31a80c56830a182194a6438a
parentf66c8e8cd923a38e454c2d4731bccc0eede1a652
target/i386: Remove cur_eip argument to gen_exception

All callers pass s->base.pc_next - s->cs_base, which we can just
as well compute within the function.  Note the special case of
EXCP_VSYSCALL in which s->cs_base wasn't subtracted, but cs_base
is always zero in 64-bit mode, when vsyscall is used.

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-4-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c