[gforth] / gforth / Attic / sparc.h  

gforth: gforth/Attic/sparc.h

Diff for /gforth/Attic/sparc.h between version 1.10 and 1.11

version 1.10, Wed Jan 18 18:41:44 1995 UTC version 1.11, Sat Oct 7 17:38:20 1995 UTC
Line 15 
Line 15 
 #define DIRECT_THREADED  #define DIRECT_THREADED
 #endif  #endif
   
   #define FLUSH_ICACHE(addr,size) \
     ({void *_addr=(addr); void *_end=_addr+(size); \
       for (_addr=((long)_addr)&~7; _addr<_end; _addr += 8) \
          asm("iflush %0"::"r"(_addr)) \
      })
   
 #ifdef DIRECT_THREADED  #ifdef DIRECT_THREADED
 #ifndef WORDS_BIGENDIAN  #ifndef WORDS_BIGENDIAN
 #error Direct threading only supported for big-endian SPARCs.  #error Direct threading only supported for big-endian SPARCs.
Line 23 
Line 29 
 */  */
 #endif  #endif
   
 /* assuming size = 8 */  
 #define CACHE_FLUSH(addr,size) \  
   asm("iflush %0; iflush %0+4"::"r"(addr))  
   
 /* 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)
 /* PFA1 is a special version for use just after a NEXT1 */  /* PFA1 is a special version for use just after a NEXT1 */


Generate output suitable for use with a patch program
Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help