[2] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: Pattern_History_Table_statistics.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[48] | 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Pattern_History_Table.h" |
---|
[2] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
[48] | 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace direction { |
---|
| 18 | |
---|
[2] | 19 | namespace meta_predictor { |
---|
| 20 | namespace two_level_branch_predictor { |
---|
| 21 | namespace pattern_history_table { |
---|
| 22 | |
---|
| 23 | string Pattern_History_Table::statistics (uint32_t depth) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Pattern_History_Table,"statistics","Begin"); |
---|
| 26 | |
---|
| 27 | string stat_print = _stat->print(depth, |
---|
| 28 | component_Counter ->statistics(depth+1) + |
---|
| 29 | component_RegisterFile->statistics(depth+1) |
---|
| 30 | ); |
---|
| 31 | |
---|
| 32 | log_printf(FUNC,Pattern_History_Table,"statistics","End"); |
---|
| 33 | |
---|
| 34 | return stat_print; |
---|
| 35 | |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace pattern_history_table |
---|
| 39 | }; // end namespace two_level_branch_predictor |
---|
| 40 | }; // end namespace meta_predictor |
---|
[48] | 41 | |
---|
| 42 | }; // end namespace core |
---|
| 43 | }; // end namespace multi_front_end |
---|
| 44 | }; // end namespace front_end |
---|
| 45 | }; // end namespace prediction_unit |
---|
| 46 | }; // end namespace direction |
---|
| 47 | |
---|
[2] | 48 | }; // end namespace behavioural |
---|
| 49 | }; // end namespace morpheo |
---|
| 50 | #endif |
---|