ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/newcpu.h
(Generate patch)

Comparing BasiliskII/src/uae_cpu/newcpu.h (file contents):
Revision 1.11 by gbeauche, 2002-10-01T09:39:55Z vs.
Revision 1.16 by gbeauche, 2006-01-15T22:42:51Z

# Line 26 | Line 26 | extern int movem_next[256];
26  
27   extern int broken_in;
28  
29 /* Control flow information */
30 #define CFLOW_NORMAL            0
31 #define CFLOW_BRANCH            1
32 #define CFLOW_JUMP                      2
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
38 #define cpuop_rettype           void
39 #define cpuop_return(v)         do { (v); return; } while (0)
40
29   #ifdef X86_ASSEMBLY
30   /* This hack seems to force all register saves (pushl %reg) to be moved to the
31     begining of the function, thus making it possible to cpuopti to remove them
# Line 49 | Line 37 | extern int broken_in;
37   #endif
38  
39   #define cpuop_begin()           do { cpuop_tag("begin"); } while (0)
40 < #define cpuop_end(cflow)        do { cpuop_tag("end"); cpuop_return(cflow); } while (0)
40 > #define cpuop_end()                     do { cpuop_tag("end"); } while (0)
41  
42 < typedef cpuop_rettype REGPARAM2 cpuop_func (uae_u32) REGPARAM;
42 > typedef void REGPARAM2 cpuop_func (uae_u32) REGPARAM;
43  
44   struct cputbl {
45      cpuop_func *handler;
# Line 71 | Line 59 | struct comptbl {
59   };
60   #endif
61  
62 < extern cpuop_rettype REGPARAM2 op_illg (uae_u32) REGPARAM;
62 > extern void REGPARAM2 op_illg (uae_u32) REGPARAM;
63  
64   typedef char flagtype;
65  
# Line 294 | Line 282 | extern struct cputbl op_smalltbl_3_ff[];
282   extern struct cputbl op_smalltbl_4_ff[];
283  
284   #if FLIGHT_RECORDER
285 < extern void m68k_record_step(uaecptr);
285 > extern void m68k_record_step(uaecptr) REGPARAM;
286   #endif
287   extern void m68k_do_execute(void);
288   extern void m68k_execute(void);
289   #if USE_JIT
302 #ifdef X86_ASSEMBLY
303 /* This is generated code */
304 extern void (*m68k_compile_execute)(void);
305 #else
306 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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines