mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
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:
parent
443f1376bc
commit
710c15a2e9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user