Fix masking of FPU top-of-stack in several places. Fixes DOS Quake.

This commit is contained in:
SarahW 2018-10-09 13:51:05 +01:00
commit d9e38fe37c
3 changed files with 5 additions and 5 deletions

View file

@ -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);