1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Meta_Predictor_Glue_deallocation.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Meta_Predictor_Glue.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_front_end { |
---|
15 | namespace front_end { |
---|
16 | namespace prediction_unit { |
---|
17 | namespace direction { |
---|
18 | |
---|
19 | namespace meta_predictor { |
---|
20 | namespace meta_predictor_glue { |
---|
21 | |
---|
22 | |
---|
23 | void Meta_Predictor_Glue::deallocation (void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Meta_Predictor_Glue,"deallocation","Begin"); |
---|
26 | |
---|
27 | delete in_CLOCK; |
---|
28 | delete in_NRESET; |
---|
29 | |
---|
30 | if (_param._have_meta_predictor) |
---|
31 | { |
---|
32 | delete [] in_PREDICT_PREDICTOR_0_ACK; |
---|
33 | delete [] in_PREDICT_PREDICTOR_1_ACK; |
---|
34 | } |
---|
35 | delete [] in_PREDICT_PREDICTOR_2_ACK; |
---|
36 | delete [] out_PREDICT_ACK ; |
---|
37 | if (_param._have_meta_predictor) |
---|
38 | { |
---|
39 | if (_param._predictor_0_have_bht) |
---|
40 | delete [] in_PREDICT_PREDICTOR_0_BHT_HISTORY; |
---|
41 | if (_param._predictor_0_have_pht) |
---|
42 | delete [] in_PREDICT_PREDICTOR_0_PHT_HISTORY; |
---|
43 | if (_param._predictor_1_have_bht) |
---|
44 | delete [] in_PREDICT_PREDICTOR_1_BHT_HISTORY; |
---|
45 | if (_param._predictor_1_have_pht) |
---|
46 | delete [] in_PREDICT_PREDICTOR_1_PHT_HISTORY ; |
---|
47 | } |
---|
48 | if (_param._predictor_2_have_bht) |
---|
49 | delete [] in_PREDICT_PREDICTOR_2_BHT_HISTORY ; |
---|
50 | if (_param._predictor_2_have_pht) |
---|
51 | delete [] in_PREDICT_PREDICTOR_2_PHT_HISTORY ; |
---|
52 | delete [] out_PREDICT_HISTORY ; |
---|
53 | delete [] out_PREDICT_DIRECTION ; |
---|
54 | |
---|
55 | if (_param._have_meta_predictor) |
---|
56 | { |
---|
57 | delete [] in_BRANCH_COMPLETE_VAL ; |
---|
58 | delete [] out_BRANCH_COMPLETE_PREDICTOR_2_VAL ; |
---|
59 | |
---|
60 | delete [] in_BRANCH_COMPLETE_PREDICTOR_0_ACK ; |
---|
61 | delete [] in_BRANCH_COMPLETE_PREDICTOR_1_ACK ; |
---|
62 | } |
---|
63 | delete [] in_BRANCH_COMPLETE_PREDICTOR_2_ACK ; |
---|
64 | delete [] out_BRANCH_COMPLETE_ACK ; |
---|
65 | if (_param._have_meta_predictor) |
---|
66 | { |
---|
67 | if (_param._predictor_0_have_bht) |
---|
68 | delete [] out_BRANCH_COMPLETE_PREDICTOR_0_BHT_HISTORY ; |
---|
69 | if (_param._predictor_0_have_pht) |
---|
70 | delete [] out_BRANCH_COMPLETE_PREDICTOR_0_PHT_HISTORY ; |
---|
71 | if (_param._predictor_1_have_bht) |
---|
72 | delete [] out_BRANCH_COMPLETE_PREDICTOR_1_BHT_HISTORY ; |
---|
73 | if (_param._predictor_1_have_pht) |
---|
74 | delete [] out_BRANCH_COMPLETE_PREDICTOR_1_PHT_HISTORY ; |
---|
75 | } |
---|
76 | if (_param._predictor_2_have_bht) |
---|
77 | delete [] out_BRANCH_COMPLETE_PREDICTOR_2_BHT_HISTORY ; |
---|
78 | if (_param._predictor_2_have_pht) |
---|
79 | delete [] out_BRANCH_COMPLETE_PREDICTOR_2_PHT_HISTORY ; |
---|
80 | delete [] in_BRANCH_COMPLETE_HISTORY ; |
---|
81 | if (_param._have_meta_predictor) |
---|
82 | { |
---|
83 | delete [] in_BRANCH_COMPLETE_DIRECTION ; |
---|
84 | delete [] out_BRANCH_COMPLETE_PREDICTOR_2_DIRECTION ; |
---|
85 | } |
---|
86 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
87 | delete _component; |
---|
88 | |
---|
89 | log_printf(FUNC,Meta_Predictor_Glue,"deallocation","End"); |
---|
90 | }; |
---|
91 | |
---|
92 | }; // end namespace meta_predictor_glue |
---|
93 | }; // end namespace meta_predictor |
---|
94 | |
---|
95 | }; // end namespace core |
---|
96 | }; // end namespace multi_front_end |
---|
97 | }; // end namespace front_end |
---|
98 | }; // end namespace prediction_unit |
---|
99 | }; // end namespace direction |
---|
100 | |
---|
101 | |
---|
102 | }; // end namespace behavioural |
---|
103 | }; // end namespace morpheo |
---|
104 | #endif |
---|