Last change
on this file since 121 was
117,
checked in by rosiere, 15 years ago
|
1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme
|
-
Property svn:keywords set to
Id
|
File size:
1.7 KB
|
Line | |
---|
1 | #ifndef ENVIRONMENT_COMMON_DEBUG_H |
---|
2 | #define ENVIRONMENT_COMMON_DEBUG_H |
---|
3 | |
---|
4 | #define DEBUG_true true |
---|
5 | #define DEBUG_ENVIRONMENT true |
---|
6 | #define DEBUG_CACHE true |
---|
7 | #define DEBUG_DATA true |
---|
8 | #define DEBUG_ENDIANNESS true |
---|
9 | #define DEBUG_QUEUE true |
---|
10 | #define DEBUG_RAMLOCK true |
---|
11 | #define DEBUG_SIM2OS true |
---|
12 | #define DEBUG_TTY true |
---|
13 | |
---|
14 | #define MSG_ENVIRONMENT "[ENVIRONMENT]" |
---|
15 | |
---|
16 | #define __cout(component,str...) \ |
---|
17 | do \ |
---|
18 | { \ |
---|
19 | fprintf(stdout,str); \ |
---|
20 | } \ |
---|
21 | while(0) |
---|
22 | |
---|
23 | #define __cerr(str...) \ |
---|
24 | do \ |
---|
25 | { \ |
---|
26 | fprintf(stderr,str); \ |
---|
27 | } \ |
---|
28 | while(0) |
---|
29 | |
---|
30 | #define cout(str...) \ |
---|
31 | do \ |
---|
32 | { \ |
---|
33 | fprintf(stdout,"%s ",MSG_ENVIRONMENT); \ |
---|
34 | __cout(true,str); \ |
---|
35 | fflush (stdout); \ |
---|
36 | } \ |
---|
37 | while(0) |
---|
38 | |
---|
39 | #define cerr(str...) \ |
---|
40 | do \ |
---|
41 | { \ |
---|
42 | fprintf(stderr,"%s ",MSG_ENVIRONMENT); \ |
---|
43 | __cerr(str); \ |
---|
44 | fflush (stderr); \ |
---|
45 | } \ |
---|
46 | while(0) |
---|
47 | |
---|
48 | #define _cout(component, str...) \ |
---|
49 | do \ |
---|
50 | { \ |
---|
51 | if (DEBUG_ ## component == true ) \ |
---|
52 | { \ |
---|
53 | cout(str); \ |
---|
54 | } \ |
---|
55 | } \ |
---|
56 | while(0) |
---|
57 | |
---|
58 | #define _cerr(str...) cerr(str) |
---|
59 | |
---|
60 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.