9 |
|
#ifndef NEWCPU_H |
10 |
|
#define NEWCPU_H |
11 |
|
|
12 |
+ |
#ifndef FLIGHT_RECORDER |
13 |
+ |
#define FLIGHT_RECORDER 0 |
14 |
+ |
#endif |
15 |
+ |
|
16 |
|
#include "m68k.h" |
17 |
|
#include "readcpu.h" |
18 |
|
#include "spcflags.h" |
30 |
|
#define CFLOW_NORMAL 0 |
31 |
|
#define CFLOW_BRANCH 1 |
32 |
|
#define CFLOW_JUMP 2 |
29 |
– |
#define CFLOW_TRAP CFLOW_JUMP |
33 |
|
#define CFLOW_RETURN 3 |
34 |
+ |
#define CFLOW_TRAP 4 |
35 |
|
#define CFLOW_SPCFLAGS 32 /* some spcflags are set */ |
36 |
|
#define CFLOW_EXEC_RETURN 64 /* must exit from the execution loop */ |
37 |
|
|
59 |
|
uae_u16 opcode; |
60 |
|
}; |
61 |
|
|
62 |
+ |
extern cpuop_func *cpufunctbl[65536] ASM_SYM_FOR_FUNC ("cpufunctbl"); |
63 |
+ |
|
64 |
+ |
#if USE_JIT |
65 |
+ |
typedef void compop_func (uae_u32) REGPARAM; |
66 |
+ |
|
67 |
+ |
struct comptbl { |
68 |
+ |
compop_func *handler; |
69 |
+ |
uae_u32 specific; |
70 |
+ |
uae_u32 opcode; |
71 |
+ |
}; |
72 |
+ |
#endif |
73 |
+ |
|
74 |
|
extern cpuop_rettype REGPARAM2 op_illg (uae_u32) REGPARAM; |
75 |
|
|
76 |
|
typedef char flagtype; |
293 |
|
/* 68000 slow but compatible. */ |
294 |
|
extern struct cputbl op_smalltbl_4_ff[]; |
295 |
|
|
296 |
+ |
#if FLIGHT_RECORDER |
297 |
+ |
extern void m68k_record_step(uaecptr); |
298 |
+ |
#endif |
299 |
|
extern void m68k_do_execute(void); |
300 |
|
extern void m68k_execute(void); |
301 |
+ |
#if USE_JIT |
302 |
+ |
extern void m68k_do_compile_execute(void); |
303 |
+ |
extern void m68k_compile_execute(void); |
304 |
+ |
#endif |
305 |
|
|
306 |
|
#endif /* NEWCPU_H */ |