Last change
on this file since 123 was
110,
checked in by rosiere, 16 years ago
|
1) OOO_egine : add stat to depiste low perf source
2) Commit : add stat
3) LSU_Pointer : retire - always ack (else combinatory loop). insert - max nb_inst_memory
4) TopLevel? : add debug_idle_time to stop combinatory loop.
5) Issue_queue : add reexecute_queue, new implementation (routage after issue_queue)
6) Decod / Predictor : add "can_continue"
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Debug.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Common/include/Debug.h" |
---|
9 | #include "Common/include/Environment.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | |
---|
13 | static bool debug_initialized; |
---|
14 | debug_verbosity_t debug; |
---|
15 | bool debug_cycle_test; |
---|
16 | double debug_cycle_start; |
---|
17 | double debug_cycle_stop ; |
---|
18 | double debug_idle_cycle ; |
---|
19 | uint32_t debug_idle_time ; |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "debug_init" |
---|
23 | void debug_init (void) |
---|
24 | { |
---|
25 | #ifdef DEBUG |
---|
26 | if (not debug_initialized) |
---|
27 | { |
---|
28 | debug = DEBUG; |
---|
29 | debug_cycle_test = false; |
---|
30 | // debug_initialized = true; |
---|
31 | } |
---|
32 | #endif |
---|
33 | } |
---|
34 | |
---|
35 | #undef FUNCTION |
---|
36 | #define FUNCTION "debug_init" |
---|
37 | void debug_init (debug_verbosity_t level, |
---|
38 | double cycle_start, |
---|
39 | double cycle_stop , |
---|
40 | double idle_cycle , |
---|
41 | uint32_t idle_time ) |
---|
42 | { |
---|
43 | if (not debug_initialized) |
---|
44 | { |
---|
45 | #ifdef DEBUG |
---|
46 | // Take min |
---|
47 | debug = (level < DEBUG)?level:DEBUG; |
---|
48 | |
---|
49 | # ifdef SYSTEMC |
---|
50 | debug_cycle_test = (cycle_stop > cycle_start) or (cycle_stop == -1); |
---|
51 | debug_cycle_start= cycle_start; |
---|
52 | debug_cycle_stop = cycle_stop; |
---|
53 | # else |
---|
54 | debug_cycle_test = false; |
---|
55 | # endif |
---|
56 | #endif |
---|
57 | debug_idle_cycle = idle_cycle; |
---|
58 | debug_idle_time = idle_time ; |
---|
59 | |
---|
60 | debug_initialized = true; |
---|
61 | } |
---|
62 | } |
---|
63 | |
---|
64 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.