Clear carry flag on DIV/IDIV on non-Cyrix processors. Fixes CPU type detection on Elonex PC-425X.
This commit is contained in:
parent
e4ddbd8441
commit
3d388564c1
1 changed files with 4 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ static int opF6_a16(uint32_t fetchdat)
|
||||||
{
|
{
|
||||||
flags_rebuild();
|
flags_rebuild();
|
||||||
flags |= 0x8D5; /*Not a Cyrix*/
|
flags |= 0x8D5; /*Not a Cyrix*/
|
||||||
|
flags &= ~1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -128,6 +129,7 @@ static int opF6_a16(uint32_t fetchdat)
|
||||||
{
|
{
|
||||||
flags_rebuild();
|
flags_rebuild();
|
||||||
flags|=0x8D5; /*Not a Cyrix*/
|
flags|=0x8D5; /*Not a Cyrix*/
|
||||||
|
flags &= ~1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -204,6 +206,7 @@ static int opF6_a32(uint32_t fetchdat)
|
||||||
{
|
{
|
||||||
flags_rebuild();
|
flags_rebuild();
|
||||||
flags |= 0x8D5; /*Not a Cyrix*/
|
flags |= 0x8D5; /*Not a Cyrix*/
|
||||||
|
flags &= ~1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -226,6 +229,7 @@ static int opF6_a32(uint32_t fetchdat)
|
||||||
{
|
{
|
||||||
flags_rebuild();
|
flags_rebuild();
|
||||||
flags|=0x8D5; /*Not a Cyrix*/
|
flags|=0x8D5; /*Not a Cyrix*/
|
||||||
|
flags &= ~1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue