Fix masking of FPU top-of-stack in several places. Fixes DOS Quake.
This commit is contained in:
parent
305b6cc4fd
commit
d9e38fe37c
3 changed files with 5 additions and 5 deletions
|
|
@ -303,7 +303,7 @@ void codegen_block_start_recompile(codeblock_t *block)
|
|||
|
||||
cpu_state.seg_ds.checked = cpu_state.seg_es.checked = cpu_state.seg_fs.checked = cpu_state.seg_gs.checked = (cr0 & 1) ? 0 : 1;
|
||||
|
||||
block->TOP = cpu_state.TOP;
|
||||
block->TOP = cpu_state.TOP & 7;
|
||||
block->was_recompiled = 1;
|
||||
|
||||
codegen_flat_ds = !(cpu_cur_status & CPU_STATUS_NOTFLATDS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue