[78] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace rename_unit { |
---|
| 17 | namespace register_translation_unit { |
---|
| 18 | namespace free_list_unit { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Free_List_unit::print" |
---|
| 23 | std::string Parameters::print (uint32_t depth) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Free_List_unit,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | XML xml ("free_list_unit"); |
---|
| 28 | |
---|
| 29 | xml.balise_open("free_list_unit"); |
---|
| 30 | xml.singleton_begin("nb_thread "); xml.attribut("value",toString(_nb_thread )); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("nb_general_register"); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_special_register"); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("nb_bank "); xml.attribut("value",toString(_nb_bank )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("nb_pop "); xml.attribut("value",toString(_nb_pop )); xml.singleton_end(); |
---|
| 35 | xml.singleton_begin("nb_push "); xml.attribut("value",toString(_nb_push )); xml.singleton_end(); |
---|
| 36 | xml.balise_close(); |
---|
| 37 | |
---|
| 38 | log_printf(FUNC,Free_List_unit,FUNCTION,"End"); |
---|
| 39 | |
---|
| 40 | return xml.get_body(depth); |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | #undef FUNCTION |
---|
| 44 | #define FUNCTION "Free_List_unit::operator<<" |
---|
| 45 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 46 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::free_list_unit::Parameters & x) |
---|
| 47 | { |
---|
| 48 | log_printf(FUNC,Free_List_unit,FUNCTION,"Begin"); |
---|
| 49 | |
---|
| 50 | output_stream << x.print(0); |
---|
| 51 | |
---|
| 52 | log_printf(FUNC,Free_List_unit,FUNCTION,"End"); |
---|
| 53 | |
---|
| 54 | return output_stream; |
---|
| 55 | }; |
---|
| 56 | |
---|
| 57 | }; // end namespace free_list_unit |
---|
| 58 | }; // end namespace register_translation_unit |
---|
| 59 | }; // end namespace rename_unit |
---|
| 60 | }; // end namespace ooo_engine |
---|
| 61 | }; // end namespace multi_ooo_engine |
---|
| 62 | }; // end namespace core |
---|
| 63 | |
---|
| 64 | }; // end namespace behavioural |
---|
| 65 | }; // end namespace morpheo |
---|