1 | /* |
---|
2 | * $Id: Parameters.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 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace core { |
---|
13 | namespace multi_front_end { |
---|
14 | namespace front_end { |
---|
15 | namespace prediction_unit { |
---|
16 | namespace direction { |
---|
17 | |
---|
18 | namespace meta_predictor { |
---|
19 | namespace two_level_branch_predictor { |
---|
20 | namespace two_level_branch_predictor_glue { |
---|
21 | |
---|
22 | |
---|
23 | Parameters::Parameters (bool have_bht , |
---|
24 | uint32_t bht_size_history , |
---|
25 | uint32_t bht_size_address , |
---|
26 | bool have_pht , |
---|
27 | uint32_t pht_size_address , |
---|
28 | uint32_t pht_size_address_share , |
---|
29 | uint32_t size_address , |
---|
30 | uint32_t nb_prediction , |
---|
31 | uint32_t nb_branch_complete ): |
---|
32 | _have_bht (have_bht ), |
---|
33 | _bht_size_history (bht_size_history ), |
---|
34 | _bht_size_address (bht_size_address ), |
---|
35 | _have_pht (have_pht ), |
---|
36 | _pht_size_address (pht_size_address ), |
---|
37 | _pht_size_address_share (pht_size_address_share ), |
---|
38 | _size_address (size_address ), |
---|
39 | _nb_prediction (nb_prediction ), |
---|
40 | _nb_branch_complete (nb_branch_complete ), |
---|
41 | _pht_size_address_shift (bht_size_history-pht_size_address_share) |
---|
42 | { |
---|
43 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","Begin"); |
---|
44 | test(); |
---|
45 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","End"); |
---|
46 | }; |
---|
47 | |
---|
48 | Parameters::Parameters (Parameters & param): |
---|
49 | _have_bht (param._have_bht ), |
---|
50 | _bht_size_history (param._bht_size_history ), |
---|
51 | _bht_size_address (param._bht_size_address ), |
---|
52 | _have_pht (param._have_pht ), |
---|
53 | _pht_size_address (param._pht_size_address ), |
---|
54 | _pht_size_address_share (param._pht_size_address_share ), |
---|
55 | _size_address (param._size_address ), |
---|
56 | _nb_prediction (param._nb_prediction ), |
---|
57 | _nb_branch_complete (param._nb_branch_complete ), |
---|
58 | _pht_size_address_shift (param._pht_size_address_shift ) |
---|
59 | { |
---|
60 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","Begin"); |
---|
61 | test(); |
---|
62 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"Parameters","End"); |
---|
63 | }; |
---|
64 | |
---|
65 | Parameters::~Parameters () |
---|
66 | { |
---|
67 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"~Parameters","Begin"); |
---|
68 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"~Parameters","End"); |
---|
69 | }; |
---|
70 | |
---|
71 | }; // end namespace two_level_branch_predictor_glue |
---|
72 | }; // end namespace two_level_branch_predictor |
---|
73 | }; // end namespace meta_predictor |
---|
74 | |
---|
75 | }; // end namespace core |
---|
76 | }; // end namespace multi_front_end |
---|
77 | }; // end namespace front_end |
---|
78 | }; // end namespace prediction_unit |
---|
79 | }; // end namespace direction |
---|
80 | |
---|
81 | }; // end namespace behavioural |
---|
82 | }; // end namespace morpheo |
---|