--- hatari/src/includes/m68000.h 2019/04/09 08:48:40 1.1.1.14 +++ hatari/src/includes/m68000.h 2019/04/09 08:49:31 1.1.1.15 @@ -105,7 +105,6 @@ enum { #define Regs regs.regs -#if defined(UAE_NEWCPU_H) # define M68000_GetPC() m68k_getpc() # define M68000_SetPC(val) m68k_setpc(val) @@ -124,34 +123,13 @@ static inline void M68000_SetSR(Uint16 v # define M68000_SetSpecial(flags) set_special(flags) # define M68000_UnsetSpecial(flags) unset_special(flags) -#else /* following code is for WinUAE CPU: */ - -# define M68000_GetPC() m68k_getpc(®s) -# define M68000_SetPC(val) m68k_setpc(®s,val) - -static inline Uint16 M68000_GetSR(void) -{ - MakeSR(®s); - return regs.sr; -} -static inline void M68000_SetSR(Uint16 v) -{ - regs.sr = v; - MakeFromSR(®s); -} - -# define M68000_SetSpecial(flags) set_special(®s,flags) -# define M68000_UnsetSpecial(flags) unset_special(®s,flags) - -#endif /* defined(UAE_NEWCPU_H) */ - /* bus error mode */ #define BUS_ERROR_WRITE 0 #define BUS_ERROR_READ 1 -/* bus acces mode */ +/* bus access mode */ #define BUS_MODE_CPU 0 /* bus is owned by the cpu */ #define BUS_MODE_BLITTER 1 /* bus is owned by the blitter */ @@ -282,7 +260,7 @@ static inline void M68000_AddCyclesWithP extern void M68000_Init(void); extern void M68000_Reset(bool bCold); extern void M68000_Start(void); -extern void M68000_CheckCpuLevel(void); +extern void M68000_CheckCpuSettings(void); extern void M68000_MemorySnapShot_Capture(bool bSave); extern void M68000_BusError(Uint32 addr, bool bReadWrite); extern void M68000_Exception(Uint32 ExceptionVector , int ExceptionSource);