lmsw fix (aka dos4gw bug)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@885 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2004-06-04 11:20:49 +00:00
parent 443f1376bc
commit 710c15a2e9
1 changed files with 3 additions and 2 deletions

View File

@ -980,8 +980,9 @@ void OPPROTO op_movl_drN_T0(void)
void OPPROTO op_lmsw_T0(void)
{
/* only 4 lower bits of CR0 are modified */
T0 = (env->cr[0] & ~0xf) | (T0 & 0xf);
/* only 4 lower bits of CR0 are modified. PE cannot be set to zero
if already set to one. */
T0 = (env->cr[0] & ~0xe) | (T0 & 0xf);
helper_movl_crN_T0(0);
}