fix for LA57 cr4 checks, thanks Ben for pointing this out
This commit is contained in:
parent
071f5c72f7
commit
41c2bb8bee
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user