target/i386: Tidy gen_check_io
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 14 May 2021 15:13:38 +0000 (10:13 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 19 May 2021 17:17:11 +0000 (12:17 -0500)
commitbc2e436d7c77dda990567e0b308f767ea0f6443d
treedde3beca8c218778a67309886c7238cb7fb02973
parent244843b757220c432e0e9ae8d2210218c034730d
target/i386: Tidy gen_check_io

Get cur_eip from DisasContext.  Do not require the caller
to use svm_is_rep; get prefix from DisasContext.  Use the
proper symbolic constants for SVM_IOIO_*.

While we're touching all call sites, return bool in
preparation for gen_check_io raising #GP.

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