corefunc.h 1.52 KB
#define	STACKSIZE	0x2000
#define BUFSIZE		(3*64*1024)	/* max size needed by tlb0 */

#ifdef _COSIM
#define Halt(Op)                          \
        ori         zero,  zero,  0x3333;     \
        ori         zero,  zero,  0x2222;     \
        ori         zero,  zero,  0x1111;     \
        ori         zero,  zero,  0x0000;     \
        .word       ((Op << 6) | 0x000D); \
1:      j           1b;                   \
        nop

#define PASS        0xffff0
#define FAIL        0xfffff

#define LOG        0xa0000500

#endif /*_COSIM */


#ifdef _LANGUAGE_C

extern int	int0(void);
extern int	int1(void);
extern int	int2(void);
extern int	int3(void);
extern int	int4(void);

extern int	mesg0(void);
extern int	mesg1(void);
extern int	mesg2(void);
extern int	mesg3(void);
extern int	mesg4(void);
extern int	mesg5(void);
extern int	mesg6(void);

extern int	thread0(void);
extern int	thread1(void);
extern int	thread2(void);
extern int	thread3(void);
extern int	thread4(void);
extern int	thread5(void);
extern int	thread6(void);
extern int	thread7(void);
extern int	thread8(void);
extern int	thread9(void);

extern int	event0(void);

extern int	tlb0(void);
extern int	tlb1(void);

extern int	yieldAndCheck(unsigned int);
extern int	dirtyAndCheck(unsigned int);
extern void	waitAndDirty(unsigned int);
extern void	doBreak(void);

extern int check_equal (long long, long long);
extern int	bitfll(void);
extern int	cconst(void);
extern int	lltest(void);
extern int	longlong(void);
extern int	div(void);

extern unsigned char buffer[];

#endif /* _LANGUAGE_C */