1 | /* |
---|
2 | * $Id: Parameters_msg_error.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
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" |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Types.h" |
---|
10 | #include <sstream> |
---|
11 | using namespace std; |
---|
12 | |
---|
13 | namespace morpheo { |
---|
14 | namespace behavioural { |
---|
15 | namespace core { |
---|
16 | namespace multi_front_end { |
---|
17 | namespace front_end { |
---|
18 | namespace prediction_unit { |
---|
19 | namespace direction { |
---|
20 | |
---|
21 | namespace meta_predictor { |
---|
22 | namespace two_level_branch_predictor { |
---|
23 | namespace two_level_branch_predictor_glue { |
---|
24 | |
---|
25 | |
---|
26 | string Parameters::msg_error(void) |
---|
27 | { |
---|
28 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","Begin"); |
---|
29 | |
---|
30 | string msg = ""; |
---|
31 | |
---|
32 | if ((_have_bht and _have_pht) and (_pht_size_address_share >= _pht_size_address)) |
---|
33 | { |
---|
34 | msg += " - You can't have higher pht_size_address_share >= pht_size_address\n"; |
---|
35 | msg += " * pht_size_address : " + toString(_pht_size_address ) + "\n"; |
---|
36 | msg += " * pht_size_address_share : " + toString(_pht_size_address_share) + "\n"; |
---|
37 | } |
---|
38 | if ((_have_bht and _have_pht) and (_bht_size_history > _pht_size_address)) |
---|
39 | { |
---|
40 | msg += " - You can't have higher bht_size_history > pht_size_address\n"; |
---|
41 | msg += " * bht_size_history : " + toString(_bht_size_history ) + "\n"; |
---|
42 | msg += " * pht_size_address : " + toString(_pht_size_address ) + "\n"; |
---|
43 | } |
---|
44 | |
---|
45 | return msg; |
---|
46 | |
---|
47 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","End"); |
---|
48 | }; |
---|
49 | |
---|
50 | }; // end namespace two_level_branch_predictor_glue |
---|
51 | }; // end namespace two_level_branch_predictor |
---|
52 | }; // end namespace meta_predictor |
---|
53 | |
---|
54 | }; // end namespace core |
---|
55 | }; // end namespace multi_front_end |
---|
56 | }; // end namespace front_end |
---|
57 | }; // end namespace prediction_unit |
---|
58 | }; // end namespace direction |
---|
59 | |
---|
60 | }; // end namespace behavioural |
---|
61 | }; // end namespace morpheo |
---|