i8087: fsave resets the fpu

This commit is contained in:
cracyc 2022-05-26 14:13:56 -05:00
parent 1799466943
commit ecdd2c5ddf
2 changed files with 2 additions and 0 deletions

View File

@ -4870,6 +4870,7 @@ void i386_device::x87_fsave(uint8_t modrm)
for (int i = 0; i < 8; ++i)
WRITE80(ea + i*10, ST(i));
x87_reset();
CYCLES((m_cr[0] & 1) ? 56 : 67);
}

View File

@ -4236,6 +4236,7 @@ void i8087_device::fsave(u8 modrm)
for (int i = 0; i < 8; ++i)
WRITE80(ea + i*10, ST(i));
reset();
CYCLES(67);
}