Fixed x86-32 recompiler MMX entry code

Fixed FPU tag resetting in EMMS instruction
Clear MMX state in FINIT
Reset FPU state in FSAVE/FNSAVE
Fixes issues with MMX when more than one MMX program is running
This commit is contained in:
SarahW 2017-01-13 21:31:42 +00:00
commit 9167b3a71f
3 changed files with 13 additions and 4 deletions

View file

@ -41,7 +41,7 @@ static inline void x87_set_mmx()
static inline void x87_emms()
{
*cpu_state.tag = 0x0303030303030303ll;
*(uint64_t *)cpu_state.tag = 0x0303030303030303ll;
cpu_state.ismmx = 0;
}