mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
target/i386: Create helper_check_io
Drop helper_check_io[bwl] and expose their common subroutine to tcg directly. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210514151342.384376-49-richard.henderson@linaro.org>
This commit is contained in:
parent
1bca40fe42
commit
e497803556
3 changed files with 5 additions and 34 deletions
|
@ -682,19 +682,7 @@ static bool gen_check_io(DisasContext *s, MemOp ot, TCGv_i32 port,
|
|||
uint32_t svm_flags)
|
||||
{
|
||||
if (PE(s) && (CPL(s) > IOPL(s) || VM86(s))) {
|
||||
switch (ot) {
|
||||
case MO_8:
|
||||
gen_helper_check_iob(cpu_env, port);
|
||||
break;
|
||||
case MO_16:
|
||||
gen_helper_check_iow(cpu_env, port);
|
||||
break;
|
||||
case MO_32:
|
||||
gen_helper_check_iol(cpu_env, port);
|
||||
break;
|
||||
default:
|
||||
tcg_abort();
|
||||
}
|
||||
gen_helper_check_io(cpu_env, port, tcg_constant_i32(1 << ot));
|
||||
}
|
||||
if (GUEST(s)) {
|
||||
target_ulong cur_eip = s->base.pc_next - s->cs_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue