[2] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Two_Level_Branch_Predictor_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/include/Two_Level_Branch_Predictor.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 | |
---|
| 22 | void Two_Level_Branch_Predictor::deallocation (void) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Two_Level_Branch_Predictor,"deallocation","Begin"); |
---|
| 25 | |
---|
| 26 | delete in_CLOCK; |
---|
[15] | 27 | delete in_NRESET; |
---|
[2] | 28 | |
---|
[42] | 29 | delete [] in_PREDICT_VAL ; |
---|
| 30 | delete [] out_PREDICT_ACK ; |
---|
| 31 | delete [] in_PREDICT_ADDRESS ; |
---|
[2] | 32 | if (_param._have_bht) |
---|
[42] | 33 | delete [] out_PREDICT_BHT_HISTORY; |
---|
[2] | 34 | if (_param._have_pht) |
---|
[42] | 35 | delete [] out_PREDICT_PHT_HISTORY; |
---|
[2] | 36 | |
---|
[42] | 37 | delete [] in_BRANCH_COMPLETE_VAL ; |
---|
| 38 | delete [] out_BRANCH_COMPLETE_ACK ; |
---|
| 39 | delete [] in_BRANCH_COMPLETE_ADDRESS ; |
---|
[2] | 40 | if (_param._have_bht) |
---|
[42] | 41 | delete [] in_BRANCH_COMPLETE_BHT_HISTORY; |
---|
[2] | 42 | if (_param._have_pht) |
---|
[42] | 43 | delete [] in_BRANCH_COMPLETE_PHT_HISTORY; |
---|
| 44 | delete [] in_BRANCH_COMPLETE_DIRECTION ; |
---|
[2] | 45 | |
---|
| 46 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 47 | |
---|
| 48 | if (_param._have_bht) |
---|
| 49 | delete component_Branch_History_Table ; |
---|
| 50 | if (_param._have_pht) |
---|
| 51 | delete component_Pattern_History_Table; |
---|
| 52 | delete component_Two_Level_Branch_Predictor_Glue; |
---|
[42] | 53 | delete _component; |
---|
[2] | 54 | |
---|
| 55 | log_printf(FUNC,Two_Level_Branch_Predictor,"deallocation","End"); |
---|
| 56 | }; |
---|
| 57 | |
---|
| 58 | }; // end namespace two_level_branch_predictor |
---|
| 59 | }; // end namespace meta_predictor |
---|
| 60 | |
---|
[48] | 61 | }; // end namespace core |
---|
| 62 | }; // end namespace multi_front_end |
---|
| 63 | }; // end namespace front_end |
---|
| 64 | }; // end namespace prediction_unit |
---|
| 65 | }; // end namespace direction |
---|
| 66 | |
---|
| 67 | |
---|
[2] | 68 | }; // end namespace behavioural |
---|
| 69 | }; // end namespace morpheo |
---|
| 70 | #endif |
---|