mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06: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
1 changed files with 3 additions and 2 deletions
|
@ -980,8 +980,9 @@ void OPPROTO op_movl_drN_T0(void)
|
||||||
|
|
||||||
void OPPROTO op_lmsw_T0(void)
|
void OPPROTO op_lmsw_T0(void)
|
||||||
{
|
{
|
||||||
/* only 4 lower bits of CR0 are modified */
|
/* only 4 lower bits of CR0 are modified. PE cannot be set to zero
|
||||||
T0 = (env->cr[0] & ~0xf) | (T0 & 0xf);
|
if already set to one. */
|
||||||
|
T0 = (env->cr[0] & ~0xe) | (T0 & 0xf);
|
||||||
helper_movl_crN_T0(0);
|
helper_movl_crN_T0(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue