X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fmusashi%2Fm68kcpu.c;fp=cpu%2Fmusashi%2Fm68kcpu.c;h=e4212a8a8e3ba3ec8404ccba789bcdade6e5faa0;hb=672ad671130bb662f099b790fdaef4be85e6c146;hp=b3cd36db2e95fcb5382583b6e4f9fb5f44785cc6;hpb=8c1952f0d742014666df8ec2191458d9117625b5;p=picodrive.git diff --git a/cpu/musashi/m68kcpu.c b/cpu/musashi/m68kcpu.c index b3cd36d..e4212a8 100644 --- a/cpu/musashi/m68kcpu.c +++ b/cpu/musashi/m68kcpu.c @@ -39,8 +39,8 @@ static const char* copyright_notice = /* ================================= DATA ================================= */ /* ======================================================================== */ -int m68ki_initial_cycles; -int m68ki_remaining_cycles = 0; /* Number of clocks remaining */ +// int m68ki_initial_cycles; // moved to m68k_execute() stack +// int m68ki_remaining_cycles = 0; /* Number of clocks remaining */ uint m68ki_tracing = 0; uint m68ki_address_space; @@ -771,6 +771,8 @@ void m68k_set_cpu_type(unsigned int cpu_type) /* ASG: removed per-instruction interrupt checks */ int m68k_execute(int num_cycles) { + int m68ki_initial_cycles; + /* Make sure we're not stopped */ if(!CPU_STOPPED) { @@ -827,17 +829,19 @@ int m68k_execute(int num_cycles) return num_cycles; } - +#if 0 int m68k_cycles_run(void) { return m68ki_initial_cycles - GET_CYCLES(); } +#endif int m68k_cycles_remaining(void) { return GET_CYCLES(); } +#if 0 /* Change the timeslice */ void m68k_modify_timeslice(int cycles) { @@ -851,7 +855,7 @@ void m68k_end_timeslice(void) m68ki_initial_cycles = GET_CYCLES(); SET_CYCLES(0); } - +#endif /* ASG: rewrote so that the int_level is a mask of the IPL0/IPL1/IPL2 bits */ /* KS: Modified so that IPL* bits match with mask positions in the SR