Remove NULL tcg arg and add a test for sysenter

This commit is contained in:
mio
2021-10-04 18:50:18 +02:00
parent 2aebf93143
commit bccc7f2fb7
2 changed files with 25 additions and 1 deletions

View File

@ -7851,8 +7851,10 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
if (!s->pe) {
gen_exception(s, EXCP0D_GPF, pc_start - s->cs_base);
} else {
gen_helper_sysenter(tcg_ctx, tcg_ctx->cpu_env, 0);
TCGv_i32 addend = tcg_const_i32(tcg_ctx, s->pc - pc_start);
gen_helper_sysenter(tcg_ctx, tcg_ctx->cpu_env, addend);
gen_eob(s);
tcg_temp_free_i32(tcg_ctx, addend);
}
break;
case 0x135: /* sysexit */