1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Two_Level_Branch_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/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Two_Level_Branch_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 two_level_branch_predictor { |
---|
21 | namespace two_level_branch_predictor_glue { |
---|
22 | |
---|
23 | |
---|
24 | void Two_Level_Branch_Predictor_Glue::deallocation (void) |
---|
25 | { |
---|
26 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"deallocation","Begin"); |
---|
27 | |
---|
28 | delete in_CLOCK; |
---|
29 | delete in_NRESET; |
---|
30 | |
---|
31 | if (_param._have_bht) |
---|
32 | { |
---|
33 | delete [] in_PREDICT_BHT_ACK ; |
---|
34 | delete [] out_PREDICT_BHT_ADDRESS; |
---|
35 | } |
---|
36 | if (_param._have_pht) |
---|
37 | { |
---|
38 | delete [] in_PREDICT_PHT_ACK ; |
---|
39 | delete [] out_PREDICT_PHT_ADDRESS; |
---|
40 | } |
---|
41 | if (_param._have_bht and _param._have_pht) |
---|
42 | delete [] in_PREDICT_BHT_HISTORY; |
---|
43 | |
---|
44 | delete [] out_PREDICT_ACK ; |
---|
45 | delete [] in_PREDICT_ADDRESS ; |
---|
46 | |
---|
47 | if (_param._have_bht) |
---|
48 | { |
---|
49 | delete [] in_BRANCH_COMPLETE_BHT_ACK ; |
---|
50 | delete [] out_BRANCH_COMPLETE_BHT_ADDRESS; |
---|
51 | } |
---|
52 | if (_param._have_pht) |
---|
53 | { |
---|
54 | delete [] in_BRANCH_COMPLETE_PHT_ACK ; |
---|
55 | delete [] out_BRANCH_COMPLETE_PHT_ADDRESS; |
---|
56 | } |
---|
57 | if (_param._have_bht and _param._have_pht) |
---|
58 | delete [] in_BRANCH_COMPLETE_BHT_HISTORY; |
---|
59 | delete [] out_BRANCH_COMPLETE_ACK ; |
---|
60 | delete [] in_BRANCH_COMPLETE_ADDRESS ; |
---|
61 | |
---|
62 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
63 | delete _component; |
---|
64 | |
---|
65 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"deallocation","End"); |
---|
66 | }; |
---|
67 | |
---|
68 | }; // end namespace two_level_branch_predictor_glue |
---|
69 | }; // end namespace two_level_branch_predictor |
---|
70 | }; // end namespace meta_predictor |
---|
71 | |
---|
72 | }; // end namespace core |
---|
73 | }; // end namespace multi_front_end |
---|
74 | }; // end namespace front_end |
---|
75 | }; // end namespace prediction_unit |
---|
76 | }; // end namespace direction |
---|
77 | |
---|
78 | |
---|
79 | }; // end namespace behavioural |
---|
80 | }; // end namespace morpheo |
---|
81 | #endif |
---|