287 |
|
extern void m68k_do_execute(void); |
288 |
|
extern void m68k_execute(void); |
289 |
|
#if USE_JIT |
290 |
– |
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY) |
291 |
– |
/* This is generated code */ |
292 |
– |
extern void (*m68k_compile_execute)(void); |
293 |
– |
#else |
294 |
– |
extern void m68k_do_compile_execute(void); |
290 |
|
extern void m68k_compile_execute(void); |
291 |
|
#endif |
292 |
+ |
#ifdef USE_CPU_EMUL_SERVICES |
293 |
+ |
extern int32 emulated_ticks; |
294 |
+ |
extern void cpu_do_check_ticks(void); |
295 |
+ |
|
296 |
+ |
static inline void cpu_check_ticks(void) |
297 |
+ |
{ |
298 |
+ |
if (--emulated_ticks <= 0) |
299 |
+ |
cpu_do_check_ticks(); |
300 |
+ |
} |
301 |
+ |
#else |
302 |
+ |
#define cpu_check_ticks() |
303 |
+ |
#define cpu_do_check_ticks() |
304 |
|
#endif |
305 |
|
|
306 |
|
#endif /* NEWCPU_H */ |