[2] | 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 | |
---|
[48] | 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" |
---|
[2] | 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 | |
---|
[2] | 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 | |
---|
[42] | 28 | delete in_CLOCK; |
---|
| 29 | delete in_NRESET; |
---|
[2] | 30 | |
---|
| 31 | if (_param._have_bht) |
---|
| 32 | { |
---|
[42] | 33 | delete [] in_PREDICT_BHT_ACK ; |
---|
| 34 | delete [] out_PREDICT_BHT_ADDRESS; |
---|
[2] | 35 | } |
---|
| 36 | if (_param._have_pht) |
---|
| 37 | { |
---|
[42] | 38 | delete [] in_PREDICT_PHT_ACK ; |
---|
| 39 | delete [] out_PREDICT_PHT_ADDRESS; |
---|
[2] | 40 | } |
---|
| 41 | if (_param._have_bht and _param._have_pht) |
---|
[42] | 42 | delete [] in_PREDICT_BHT_HISTORY; |
---|
[2] | 43 | |
---|
[42] | 44 | delete [] out_PREDICT_ACK ; |
---|
| 45 | delete [] in_PREDICT_ADDRESS ; |
---|
[2] | 46 | |
---|
| 47 | if (_param._have_bht) |
---|
| 48 | { |
---|
[42] | 49 | delete [] in_BRANCH_COMPLETE_BHT_ACK ; |
---|
| 50 | delete [] out_BRANCH_COMPLETE_BHT_ADDRESS; |
---|
[2] | 51 | } |
---|
| 52 | if (_param._have_pht) |
---|
| 53 | { |
---|
[42] | 54 | delete [] in_BRANCH_COMPLETE_PHT_ACK ; |
---|
| 55 | delete [] out_BRANCH_COMPLETE_PHT_ADDRESS; |
---|
[2] | 56 | } |
---|
| 57 | if (_param._have_bht and _param._have_pht) |
---|
[42] | 58 | delete [] in_BRANCH_COMPLETE_BHT_HISTORY; |
---|
| 59 | delete [] out_BRANCH_COMPLETE_ACK ; |
---|
| 60 | delete [] in_BRANCH_COMPLETE_ADDRESS ; |
---|
[2] | 61 | |
---|
| 62 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
[42] | 63 | delete _component; |
---|
[2] | 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 | |
---|
[48] | 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 | |
---|
[2] | 79 | }; // end namespace behavioural |
---|
| 80 | }; // end namespace morpheo |
---|
| 81 | #endif |
---|