target/i386: Return bool from disas_insn
commitf66c8e8cd923a38e454c2d4731bccc0eede1a652
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 14:09:11 +0000 (1 07:09 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Oct 2022 07:36:01 +0000 (11 09:36 +0200)
tree60160f6d45b6ed4ab156e51989f19599d00c8249
parentddf83b35bde680faecae693c0fa03c18814a7a2e
target/i386: Return bool from disas_insn

Instead of returning the new pc, which is present in
DisasContext, return true if an insn was translated.
This is false when we detect a page crossing and must
undo the insn under translation.

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