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:
parent
451e80a333
commit
c682e070a6
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue