[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[48] | 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h" |
---|
[2] | 9 | #include <sstream> |
---|
| 10 | using namespace std; |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
[48] | 14 | namespace core { |
---|
| 15 | namespace multi_front_end { |
---|
| 16 | namespace front_end { |
---|
| 17 | namespace prediction_unit { |
---|
| 18 | namespace direction { |
---|
| 19 | |
---|
[2] | 20 | namespace meta_predictor { |
---|
| 21 | namespace two_level_branch_predictor { |
---|
| 22 | namespace two_level_branch_predictor_glue { |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | string Parameters::print (uint32_t depth) |
---|
| 26 | { |
---|
| 27 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","Begin"); |
---|
| 28 | |
---|
| 29 | string tab = string(depth,'\t'); |
---|
| 30 | ostringstream msg; |
---|
| 31 | msg << tab << "<two_level_branch_predictor_glue>" << endl |
---|
| 32 | << tab << "\t<have_bht value=\"" << _have_bht << "\" />" << endl |
---|
| 33 | << tab << "\t<bht_size_history value=\"" << _bht_size_history << "\" />" << endl |
---|
| 34 | << tab << "\t<bht_size_address value=\"" << _bht_size_address << "\" />" << endl |
---|
| 35 | << tab << "\t<have_pht value=\"" << _have_pht << "\" />" << endl |
---|
| 36 | << tab << "\t<pht_size_address value=\"" << _pht_size_address << "\" />" << endl |
---|
| 37 | << tab << "\t<pht_size_address_share value=\"" << _pht_size_address_share << "\" /> <!-- Need " << _pht_size_address_shift << " bits to shift -->" << endl |
---|
| 38 | << tab << "\t<size_address value=\"" << _size_address << "\" />" << endl |
---|
| 39 | << tab << "\t<nb_prediction value=\"" << _nb_prediction << "\" />" << endl |
---|
| 40 | << tab << "\t<nb_branch_complete value=\"" << _nb_branch_complete << "\" />" << endl |
---|
| 41 | << tab << "</two_level_branch_predictor_glue>" << endl; |
---|
| 42 | |
---|
| 43 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","End"); |
---|
| 44 | |
---|
| 45 | return msg.str(); |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | ostream& operator<< (ostream& output_stream , |
---|
[48] | 49 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::two_level_branch_predictor_glue::Parameters & x) |
---|
[2] | 50 | { |
---|
| 51 | output_stream << x.print(0); |
---|
| 52 | |
---|
| 53 | return output_stream; |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | }; // end namespace two_level_branch_predictor_glue |
---|
| 57 | }; // end namespace two_level_branch_predictor |
---|
| 58 | }; // end namespace meta_predictor |
---|
| 59 | |
---|
[48] | 60 | }; // end namespace core |
---|
| 61 | }; // end namespace multi_front_end |
---|
| 62 | }; // end namespace front_end |
---|
| 63 | }; // end namespace prediction_unit |
---|
| 64 | }; // end namespace direction |
---|
| 65 | |
---|
| 66 | |
---|
[2] | 67 | }; // end namespace behavioural |
---|
| 68 | }; // end namespace morpheo |
---|