[2] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Stage_1_Ifetch/Predictor/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 stage_1_ifetch { |
---|
| 14 | namespace predictor { |
---|
| 15 | namespace meta_predictor { |
---|
| 16 | namespace two_level_branch_predictor { |
---|
| 17 | namespace two_level_branch_predictor_glue { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | void Two_Level_Branch_Predictor_Glue::deallocation (void) |
---|
| 21 | { |
---|
| 22 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"deallocation","Begin"); |
---|
| 23 | |
---|
[42] | 24 | delete in_CLOCK; |
---|
| 25 | delete in_NRESET; |
---|
[2] | 26 | |
---|
| 27 | if (_param._have_bht) |
---|
| 28 | { |
---|
[42] | 29 | delete [] in_PREDICT_BHT_ACK ; |
---|
| 30 | delete [] out_PREDICT_BHT_ADDRESS; |
---|
[2] | 31 | } |
---|
| 32 | if (_param._have_pht) |
---|
| 33 | { |
---|
[42] | 34 | delete [] in_PREDICT_PHT_ACK ; |
---|
| 35 | delete [] out_PREDICT_PHT_ADDRESS; |
---|
[2] | 36 | } |
---|
| 37 | if (_param._have_bht and _param._have_pht) |
---|
[42] | 38 | delete [] in_PREDICT_BHT_HISTORY; |
---|
[2] | 39 | |
---|
[42] | 40 | delete [] out_PREDICT_ACK ; |
---|
| 41 | delete [] in_PREDICT_ADDRESS ; |
---|
[2] | 42 | |
---|
| 43 | if (_param._have_bht) |
---|
| 44 | { |
---|
[42] | 45 | delete [] in_BRANCH_COMPLETE_BHT_ACK ; |
---|
| 46 | delete [] out_BRANCH_COMPLETE_BHT_ADDRESS; |
---|
[2] | 47 | } |
---|
| 48 | if (_param._have_pht) |
---|
| 49 | { |
---|
[42] | 50 | delete [] in_BRANCH_COMPLETE_PHT_ACK ; |
---|
| 51 | delete [] out_BRANCH_COMPLETE_PHT_ADDRESS; |
---|
[2] | 52 | } |
---|
| 53 | if (_param._have_bht and _param._have_pht) |
---|
[42] | 54 | delete [] in_BRANCH_COMPLETE_BHT_HISTORY; |
---|
| 55 | delete [] out_BRANCH_COMPLETE_ACK ; |
---|
| 56 | delete [] in_BRANCH_COMPLETE_ADDRESS ; |
---|
[2] | 57 | |
---|
| 58 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
[42] | 59 | delete _component; |
---|
[2] | 60 | |
---|
| 61 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"deallocation","End"); |
---|
| 62 | }; |
---|
| 63 | |
---|
| 64 | }; // end namespace two_level_branch_predictor_glue |
---|
| 65 | }; // end namespace two_level_branch_predictor |
---|
| 66 | }; // end namespace meta_predictor |
---|
| 67 | }; // end namespace predictor |
---|
| 68 | }; // end namespace stage_1_ifetch |
---|
| 69 | |
---|
| 70 | }; // end namespace behavioural |
---|
| 71 | }; // end namespace morpheo |
---|
| 72 | #endif |
---|