Message ID | 20231221093805.309502-1-guoguangyao18@mails.ucas.ac.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Signed-off-by: guoguangyao <guoguangyao18@mails.ucas.ac.cn> | expand |
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 037bc47e7c..3dc7781a41 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -566,9 +566,9 @@ static void gen_update_eip_next(DisasContext *s) if (tb_cflags(s->base.tb) & CF_PCREL) { tcg_gen_addi_tl(cpu_eip, cpu_eip, s->pc - s->pc_save); } else if (CODE64(s)) { - tcg_gen_movi_tl(cpu_eip, s->base.pc_next); + tcg_gen_movi_tl(cpu_eip, s->pc); } else { - tcg_gen_movi_tl(cpu_eip, (uint32_t)(s->base.pc_next - s->cs_base)); + tcg_gen_movi_tl(cpu_eip, (uint32_t)(s->pc - s->cs_base)); } s->pc_save = s->pc; }