Merge pull request #2021 from goshhhy/master
Fix several build issues if built with -DDYNAREC=Off
This commit is contained in:
@@ -1046,8 +1046,12 @@ pc_reset_hard_init(void)
|
|||||||
atfullspeed = 0;
|
atfullspeed = 0;
|
||||||
pc_full_speed();
|
pc_full_speed();
|
||||||
|
|
||||||
cycles = cycles_main = 0;
|
|
||||||
|
cycles = 0;
|
||||||
|
#ifdef USE_DYNAREC
|
||||||
|
cycles_main = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
update_mouse_msg();
|
update_mouse_msg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
add_library(cpu OBJECT cpu.c cpu_table.c fpu.c x86.c 808x.c 386.c 386_common.c 386_dynarec.c
|
add_library(cpu OBJECT cpu.c cpu_table.c fpu.c x86.c 808x.c 386.c 386_common.c 386_dynarec.c
|
||||||
386_dynarec_ops.c x86seg.c x87.c x87_timings.c)
|
x86seg.c x87.c x87_timings.c)
|
||||||
|
|
||||||
if(AMD_K5)
|
if(AMD_K5)
|
||||||
target_compile_definitions(cpu PRIVATE USE_AMD_K5)
|
target_compile_definitions(cpu PRIVATE USE_AMD_K5)
|
||||||
@@ -29,4 +29,5 @@ if(DYNAREC)
|
|||||||
codegen_timing_common.c codegen_timing_k6.c
|
codegen_timing_common.c codegen_timing_k6.c
|
||||||
codegen_timing_pentium.c codegen_timing_p6.c
|
codegen_timing_pentium.c codegen_timing_p6.c
|
||||||
codegen_timing_winchip.c codegen_timing_winchip2.c)
|
codegen_timing_winchip.c codegen_timing_winchip2.c)
|
||||||
|
add_library(dynarec_ops OBJECT 386_dynarec_ops.c)
|
||||||
endif()
|
endif()
|
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -892,8 +892,10 @@ dma_page_write(uint16_t addr, uint8_t val, void *priv)
|
|||||||
{
|
{
|
||||||
uint8_t convert[8] = CHANNELS;
|
uint8_t convert[8] = CHANNELS;
|
||||||
|
|
||||||
|
#ifdef USE_DYNAREC
|
||||||
if ((addr == 0x84) && cpu_use_dynarec)
|
if ((addr == 0x84) && cpu_use_dynarec)
|
||||||
update_tsc();
|
update_tsc();
|
||||||
|
#endif
|
||||||
|
|
||||||
addr &= 0x0f;
|
addr &= 0x0f;
|
||||||
dmaregs[2][addr] = val;
|
dmaregs[2][addr] = val;
|
||||||
|
Reference in New Issue
Block a user