Slight changes related to PAE.
This commit is contained in:
@@ -139,8 +139,8 @@ static int opMOV_CRx_r_a16(uint32_t fetchdat)
|
|||||||
case 4:
|
case 4:
|
||||||
if (cpu_has_feature(CPU_FEATURE_CR4))
|
if (cpu_has_feature(CPU_FEATURE_CR4))
|
||||||
{
|
{
|
||||||
if (cpu_state.regs[cpu_rm].l & 0x00000020)
|
if (((cpu_state.regs[cpu_rm].l ^ cr4) & cpu_CR4_mask) & CR4_PAE)
|
||||||
fatal("PAE enable\n");
|
flushmmucache();
|
||||||
cr4 = cpu_state.regs[cpu_rm].l & cpu_CR4_mask;
|
cr4 = cpu_state.regs[cpu_rm].l & cpu_CR4_mask;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -195,6 +195,8 @@ static int opMOV_CRx_r_a32(uint32_t fetchdat)
|
|||||||
case 4:
|
case 4:
|
||||||
if (cpu_has_feature(CPU_FEATURE_CR4))
|
if (cpu_has_feature(CPU_FEATURE_CR4))
|
||||||
{
|
{
|
||||||
|
if (((cpu_state.regs[cpu_rm].l ^ cr4) & cpu_CR4_mask) & CR4_PAE)
|
||||||
|
flushmmucache();
|
||||||
cr4 = cpu_state.regs[cpu_rm].l & cpu_CR4_mask;
|
cr4 = cpu_state.regs[cpu_rm].l & cpu_CR4_mask;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user