corefunc.h
1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#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 */