Fix x87 tag register when using MMX instructions. Fixes numerous issues when an MMX process is running at the same time as one or more other MMX/FPU processes (usually seen running 3dfx games with AudioPCI).

This commit is contained in:
SarahW 2019-05-11 18:41:31 +01:00
commit c682e070a6
3 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ uint16_t x87_pc_seg,x87_op_seg;
static inline void x87_set_mmx()
{
cpu_state.TOP = 0;
*(uint64_t *)cpu_state.tag = 0;
*(uint64_t *)cpu_state.tag = 0x0101010101010101ull;
cpu_state.ismmx = 1;
}