From 4073d65f4deaf6dcc4111d53f3c351c950bca85e Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Wed, 19 Sep 2001 17:36:54 +0000 Subject: [PATCH] - apply patch [ #455014 ] CR0 bug in 80486, described as: > In the register CR0, when the bit PM is enabled, the bit 4 is 0 > when should be 1. Another fix from an anonymous donor. --- bochs/cpu/proc_ctrl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/cpu/proc_ctrl.cc b/bochs/cpu/proc_ctrl.cc index 573ce66a5..b45870492 100644 --- a/bochs/cpu/proc_ctrl.cc +++ b/bochs/cpu/proc_ctrl.cc @@ -1081,7 +1081,7 @@ BX_CPU_C::SetCR0(Bit32u val_32) #if BX_CPU_LEVEL == 3 BX_CPU_THIS_PTR cr0.val32 = val_32 | 0x7ffffff0; #elif BX_CPU_LEVEL == 4 - BX_CPU_THIS_PTR cr0.val32 = val_32 & 0xe005002f; + BX_CPU_THIS_PTR cr0.val32 = (val_32 | 0x00000010) & 0xe005003f; #elif BX_CPU_LEVEL == 5 BX_CPU_THIS_PTR cr0.val32 = val_32 | 0x00000010; #elif BX_CPU_LEVEL == 6