Clear carry flag on DIV/IDIV on non-Cyrix processors. Fixes CPU type detection on Elonex PC-425X.

This commit is contained in:
SarahW 2018-04-19 22:00:09 +01:00
commit 3d388564c1

View file

@ -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