version 1.7, 1994/12/12 17:10:27
|
version 1.9, 1995/10/11 19:39:31
|
Line 14
|
Line 14
|
parallelism (no pipelining or too few registers) */ |
parallelism (no pipelining or too few registers) */ |
#define CISC_NEXT |
#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 |
#ifdef DIRECT_THREADED |
/* PFA gives the parameter field address corresponding to a cfa */ |
/* PFA gives the parameter field address corresponding to a cfa */ |
#define PFA(cfa) (((Cell *)cfa)+2) |
#define PFA(cfa) (((Cell *)cfa)+2) |
Line 43
|
Line 48
|
#endif |
#endif |
|
|
#ifdef FORCE_REG |
#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 IPREG asm("%esi") |
#define SPREG asm("%edi") |
#define SPREG asm("%edi") |
#ifdef USE_TOS |
#ifdef USE_TOS |
Line 50
|
Line 58
|
#else |
#else |
#define CFAREG asm("%edx") |
#define CFAREG asm("%edx") |
#endif |
#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 */ |
#endif /* FORCE_REG */ |