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