always check for pushf/popf exception in the dynamic core (prevents discrepancy if instruction is executed in realmode and v86)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2850
This commit is contained in:
parent
e54e2cd8d5
commit
eb90bbf252
1 changed files with 2 additions and 2 deletions
|
@ -2187,14 +2187,14 @@ restart_prefix:
|
|||
gen_releasereg(DREG(ESP));
|
||||
dyn_flags_gen_to_host();
|
||||
gen_call_function((void *)&CPU_PUSHF,"%Rd%Id",DREG(TMPB),decode.big_op);
|
||||
if (cpu.pmode) dyn_check_bool_exception(DREG(TMPB));
|
||||
dyn_check_bool_exception(DREG(TMPB));
|
||||
gen_releasereg(DREG(TMPB));
|
||||
break;
|
||||
case 0x9d: //POPF
|
||||
gen_releasereg(DREG(ESP));
|
||||
gen_releasereg(DREG(FLAGS));
|
||||
gen_call_function((void *)&CPU_POPF,"%Rd%Id",DREG(TMPB),decode.big_op);
|
||||
if (cpu.pmode) dyn_check_bool_exception(DREG(TMPB));
|
||||
dyn_check_bool_exception(DREG(TMPB));
|
||||
dyn_flags_host_to_gen();
|
||||
gen_releasereg(DREG(TMPB));
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue