fix for LA57 cr4 checks, thanks Ben for pointing this out

This commit is contained in:
Shwartsman 2024-01-04 08:35:22 +02:00
parent 071f5c72f7
commit 41c2bb8bee
1 changed files with 4 additions and 2 deletions

View File

@ -1311,8 +1311,10 @@ bool BX_CPP_AttrRegparmN(1) BX_CPU_C::check_CR4(bx_address cr4_val)
}
if(! temp_cr4.get_LA57()) {
BX_ERROR(("check_CR4(): attempt to clear CR4.LA57 when EFER.LMA=1"));
return false;
if (BX_CPU_THIS_PTR cr4.get_LA57()) {
BX_ERROR(("check_CR4(): attempt to clear CR4.LA57 when EFER.LMA=1"));
return false;
}
}
}
else {