x86seg.c: cyrix_load_seg_descriptor: don't use codegen variables if dynarec disabled
This commit is contained in:
@@ -2415,7 +2415,9 @@ cyrix_load_seg_descriptor(uint32_t addr, x86seg *seg)
|
|||||||
cpu_cur_status &= ~CPU_STATUS_NOTFLATDS;
|
cpu_cur_status &= ~CPU_STATUS_NOTFLATDS;
|
||||||
else
|
else
|
||||||
cpu_cur_status |= CPU_STATUS_NOTFLATDS;
|
cpu_cur_status |= CPU_STATUS_NOTFLATDS;
|
||||||
|
#ifdef USE_DYNAREC
|
||||||
codegen_flat_ds = 0;
|
codegen_flat_ds = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (seg == &cpu_state.seg_ss) {
|
if (seg == &cpu_state.seg_ss) {
|
||||||
if (seg->base == 0 && seg->limit_low == 0 && seg->limit_high == 0xffffffff)
|
if (seg->base == 0 && seg->limit_low == 0 && seg->limit_high == 0xffffffff)
|
||||||
@@ -2423,7 +2425,9 @@ cyrix_load_seg_descriptor(uint32_t addr, x86seg *seg)
|
|||||||
else
|
else
|
||||||
cpu_cur_status |= CPU_STATUS_NOTFLATSS;
|
cpu_cur_status |= CPU_STATUS_NOTFLATSS;
|
||||||
set_stack32((segdat[3] & 0x40) ? 1 : 0);
|
set_stack32((segdat[3] & 0x40) ? 1 : 0);
|
||||||
|
#ifdef USE_DYNAREC
|
||||||
codegen_flat_ss = 0;
|
codegen_flat_ss = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user