1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/include/Parameters.h" |
---|
9 | #include "Behavioural/include/XML.h" |
---|
10 | using namespace std; |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace stage_1_ifetch { |
---|
15 | namespace predictor { |
---|
16 | namespace meta_predictor { |
---|
17 | namespace meta_predictor_glue { |
---|
18 | |
---|
19 | |
---|
20 | string Parameters::print (uint32_t depth) |
---|
21 | { |
---|
22 | log_printf(FUNC,Meta_Predictor_Glue,"print","Begin"); |
---|
23 | |
---|
24 | XML xml ("meta_predictor_glue"); |
---|
25 | |
---|
26 | xml.balise_open("meta_predictor_glue"); |
---|
27 | |
---|
28 | xml. singleton_begin("have_meta_predictor "); |
---|
29 | xml. attribut("value",toString(_have_meta_predictor )); |
---|
30 | xml. singleton_end(); |
---|
31 | |
---|
32 | xml. singleton_begin("predictor_0_have_bht "); |
---|
33 | xml. attribut("value",toString(_predictor_0_have_bht )); |
---|
34 | xml. singleton_end(); |
---|
35 | xml. singleton_begin("predictor_0_bht_size_shifter "); |
---|
36 | xml. attribut("value",toString(_predictor_0_bht_size_shifter )); |
---|
37 | xml. singleton_end(); |
---|
38 | xml. singleton_begin("predictor_0_have_pht "); |
---|
39 | xml. attribut("value",toString(_predictor_0_have_pht )); |
---|
40 | xml. singleton_end(); |
---|
41 | xml. singleton_begin("predictor_0_pht_size_counter "); |
---|
42 | xml. attribut("value",toString(_predictor_0_pht_size_counter )); |
---|
43 | xml. singleton_end(); |
---|
44 | |
---|
45 | xml. singleton_begin("predictor_1_have_bht "); |
---|
46 | xml. attribut("value",toString(_predictor_1_have_bht )); |
---|
47 | xml. singleton_end(); |
---|
48 | xml. singleton_begin("predictor_1_bht_size_shifter "); |
---|
49 | xml. attribut("value",toString(_predictor_1_bht_size_shifter )); |
---|
50 | xml. singleton_end(); |
---|
51 | xml. singleton_begin("predictor_1_have_pht "); |
---|
52 | xml. attribut("value",toString(_predictor_1_have_pht )); |
---|
53 | xml. singleton_end(); |
---|
54 | xml. singleton_begin("predictor_1_pht_size_counter "); |
---|
55 | xml. attribut("value",toString(_predictor_1_pht_size_counter )); |
---|
56 | xml. singleton_end(); |
---|
57 | |
---|
58 | xml. singleton_begin("predictor_2_have_bht "); |
---|
59 | xml. attribut("value",toString(_predictor_2_have_bht )); |
---|
60 | xml. singleton_end(); |
---|
61 | xml. singleton_begin("predictor_2_bht_size_shifter "); |
---|
62 | xml. attribut("value",toString(_predictor_2_bht_size_shifter )); |
---|
63 | xml. singleton_end(); |
---|
64 | xml. singleton_begin("predictor_2_have_pht "); |
---|
65 | xml. attribut("value",toString(_predictor_2_have_pht )); |
---|
66 | xml. singleton_end(); |
---|
67 | xml. singleton_begin("predictor_2_pht_size_counter "); |
---|
68 | xml. attribut("value",toString(_predictor_2_pht_size_counter )); |
---|
69 | xml. singleton_end(); |
---|
70 | |
---|
71 | xml. singleton_begin("nb_prediction "); |
---|
72 | xml. attribut("value",toString(_nb_prediction )); |
---|
73 | xml. singleton_end(); |
---|
74 | xml. singleton_begin("nb_branch_complete "); |
---|
75 | xml. attribut("value",toString(_nb_branch_complete )); |
---|
76 | xml. singleton_end(); |
---|
77 | |
---|
78 | xml.balise_close(); |
---|
79 | |
---|
80 | log_printf(FUNC,Meta_Predictor_Glue,"print","End"); |
---|
81 | |
---|
82 | return xml.get_body(depth); |
---|
83 | }; |
---|
84 | |
---|
85 | ostream& operator<< (ostream& output_stream , |
---|
86 | morpheo::behavioural::stage_1_ifetch::predictor::meta_predictor::meta_predictor_glue::Parameters & x) |
---|
87 | { |
---|
88 | output_stream << x.print(0); |
---|
89 | |
---|
90 | return output_stream; |
---|
91 | }; |
---|
92 | |
---|
93 | }; // end namespace meta_predictor_glue |
---|
94 | }; // end namespace meta_predictor |
---|
95 | }; // end namespace predictor |
---|
96 | }; // end namespace stage_1_ifetch |
---|
97 | |
---|
98 | }; // end namespace behavioural |
---|
99 | }; // end namespace morpheo |
---|