Fixed a condition in write to CR0.

This commit is contained in:
OBattler
2024-08-27 16:36:32 +02:00
parent 01267965ca
commit 690b970739

View File

@@ -187,7 +187,7 @@ opMOV_CRx_r_a16(uint32_t fetchdat)
if ((cpu_state.regs[cpu_rm].l ^ cr0) & 0x00000001)
flushmmucache();
else if ((cpu_state.regs[cpu_rm].l ^ cr0) & 0x80000000) {
if (is_p6 && !cpu_use_dynarec)
if (is_p6 || cpu_use_dynarec)
flushmmucache();
else
cpu_flush_pending = 1;
@@ -253,7 +253,7 @@ opMOV_CRx_r_a32(uint32_t fetchdat)
if ((cpu_state.regs[cpu_rm].l ^ cr0) & 0x00000001)
flushmmucache();
else if ((cpu_state.regs[cpu_rm].l ^ cr0) & 0x80000000) {
if (is_p6 && !cpu_use_dynarec)
if (is_p6 || cpu_use_dynarec)
flushmmucache();
else
cpu_flush_pending = 1;