[5] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Meta_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/include/Meta_Predictor.h" |
---|
[5] | 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 | |
---|
[5] | 19 | namespace meta_predictor { |
---|
| 20 | |
---|
| 21 | void Meta_Predictor::deallocation (void) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Meta_Predictor,"deallocation","Begin"); |
---|
| 24 | |
---|
[44] | 25 | delete in_CLOCK; |
---|
| 26 | delete in_NRESET; |
---|
[5] | 27 | |
---|
[44] | 28 | delete [] in_PREDICT_VAL ; |
---|
| 29 | delete [] out_PREDICT_ACK ; |
---|
| 30 | delete [] in_PREDICT_ADDRESS ; |
---|
| 31 | delete [] out_PREDICT_HISTORY ; |
---|
| 32 | delete [] out_PREDICT_DIRECTION ; |
---|
[5] | 33 | |
---|
[44] | 34 | delete [] in_BRANCH_COMPLETE_VAL ; |
---|
| 35 | delete [] out_BRANCH_COMPLETE_ACK ; |
---|
| 36 | delete [] in_BRANCH_COMPLETE_ADDRESS ; |
---|
| 37 | delete [] in_BRANCH_COMPLETE_HISTORY ; |
---|
| 38 | delete [] in_BRANCH_COMPLETE_DIRECTION ; |
---|
[5] | 39 | |
---|
| 40 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 41 | |
---|
| 42 | if (_param._have_meta_predictor) |
---|
| 43 | { |
---|
| 44 | delete component_Two_Level_Branch_Predictor_0; |
---|
| 45 | delete component_Two_Level_Branch_Predictor_1; |
---|
| 46 | } |
---|
| 47 | delete component_Two_Level_Branch_Predictor_2; |
---|
| 48 | delete component_Meta_Predictor_Glue ; |
---|
[44] | 49 | delete _component; |
---|
[5] | 50 | |
---|
| 51 | log_printf(FUNC,Meta_Predictor,"deallocation","End"); |
---|
| 52 | }; |
---|
| 53 | |
---|
| 54 | }; // end namespace meta_predictor |
---|
| 55 | |
---|
[48] | 56 | }; // end namespace core |
---|
| 57 | }; // end namespace multi_front_end |
---|
| 58 | }; // end namespace front_end |
---|
| 59 | }; // end namespace prediction_unit |
---|
| 60 | }; // end namespace direction |
---|
| 61 | |
---|
| 62 | |
---|
[5] | 63 | }; // end namespace behavioural |
---|
| 64 | }; // end namespace morpheo |
---|
| 65 | #endif |
---|