--- gforth/Attic/386.h 1994/12/12 17:10:27 1.7 +++ gforth/Attic/386.h 1995/10/11 19:39:31 1.9 @@ -14,6 +14,11 @@ parallelism (no pipelining or too few registers) */ #define CISC_NEXT +/* 386 and below have no cache, 486 has a shared cache, and the + Pentium probably employs hardware cache consistency, so + flush-icache is a noop */ +#define FLUSH_ICACHE(addr,size) 0 + #ifdef DIRECT_THREADED /* PFA gives the parameter field address corresponding to a cfa */ #define PFA(cfa) (((Cell *)cfa)+2) @@ -43,6 +48,9 @@ #endif #ifdef FORCE_REG +#if (__GNUC__==2 && defined(__GNUC_MINOR__) && __GNUC_MINOR__==5) +/* i.e. gcc-2.5.x */ +/* this works with 2.5.7; nothing works with 2.5.8 */ #define IPREG asm("%esi") #define SPREG asm("%edi") #ifdef USE_TOS @@ -50,4 +58,9 @@ #else #define CFAREG asm("%edx") #endif +#else /* gcc-version */ +/* this works with 2.6.3 (and quite well, too) */ +/* since this is not very demanding, it's the default for other gcc versions */ +#define SPREG asm("%ebx") +#endif /* gcc-version */ #endif /* FORCE_REG */