--- BasiliskII/src/Unix/sysdeps.h 1999/10/27 17:50:07 1.8 +++ BasiliskII/src/Unix/sysdeps.h 2000/07/22 18:12:34 1.12 @@ -1,7 +1,7 @@ /* * sysdeps.h - System dependent definitions for Unix * - * Basilisk II (C) 1997-1999 Christian Bauer + * Basilisk II (C) 1997-2000 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,7 +42,6 @@ #include #include #include -#include #ifdef HAVE_FCNTL_H # include @@ -60,18 +59,34 @@ #endif -/* Are the Mac and the host address space the same? */ +#ifdef ENABLE_NATIVE_M68K + +/* Mac and host address space are the same */ +#define REAL_ADDRESSING 1 + +/* Using 68k natively */ +#define EMULATED_68K 0 + +/* Mac ROM is not write protected */ +#define ROM_IS_WRITE_PROTECTED 0 + +#else + +/* Mac and host address space are distinct */ #define REAL_ADDRESSING 0 -/* Are we using a 68k emulator or the real thing? */ +/* Using 68k emulator */ #define EMULATED_68K 1 -/* Is the Mac ROM write protected? */ +/* Mac ROM is write protected */ #define ROM_IS_WRITE_PROTECTED 1 +#endif + /* ExtFS is supported */ #define SUPPORTS_EXTFS 1 + /* Data types */ typedef unsigned char uint8; typedef signed char int8; @@ -133,6 +148,10 @@ typedef uae_u32 uaecptr; # define CPU_CAN_ACCESS_UNALIGNED #endif +/* Timing functions */ +extern uint64 GetTicks_usec(void); +extern void Delay_usec(uint32 usec); + /* UAE CPU defines */ #ifdef WORDS_BIGENDIAN @@ -219,15 +238,22 @@ static inline void do_put_mem_word(uae_u #define call_mem_put_func(func, addr, v) ((*func)(addr, v)) #define __inline__ inline #define CPU_EMU_SIZE 0 -#undef USE_MAPPED_MEMORY -#undef CAN_MAP_MEMORY #undef NO_INLINE_MEMORY_ACCESS #undef MD_HAVE_MEM_1_FUNCS -#undef USE_COMPILER #define ENUMDECL typedef enum #define ENUMNAME(name) name #define write_log printf +#ifdef USE_COMPILER +#define USE_MAPPED_MEMORY +#define CAN_MAP_MEMORY +#define NO_EXCEPTION_3 +#define NO_PREFETCH_BUFFER +#else +#undef USE_MAPPED_MEMORY +#undef CAN_MAP_MEMORY +#endif + #ifdef X86_ASSEMBLY #define ASM_SYM_FOR_FUNC(a) __asm__(a) #else