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/include/Two_Level_Branch_Predictor.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 | |
---|
18 | void Two_Level_Branch_Predictor::deallocation (void) |
---|
19 | { |
---|
20 | log_printf(FUNC,Two_Level_Branch_Predictor,"deallocation","Begin"); |
---|
21 | |
---|
22 | delete in_CLOCK; |
---|
23 | delete in_NRESET; |
---|
24 | |
---|
25 | delete [] in_PREDICT_VAL ; |
---|
26 | delete [] out_PREDICT_ACK ; |
---|
27 | delete [] in_PREDICT_ADDRESS ; |
---|
28 | if (_param._have_bht) |
---|
29 | delete [] out_PREDICT_BHT_HISTORY; |
---|
30 | if (_param._have_pht) |
---|
31 | delete [] out_PREDICT_PHT_HISTORY; |
---|
32 | |
---|
33 | delete [] in_BRANCH_COMPLETE_VAL ; |
---|
34 | delete [] out_BRANCH_COMPLETE_ACK ; |
---|
35 | delete [] in_BRANCH_COMPLETE_ADDRESS ; |
---|
36 | if (_param._have_bht) |
---|
37 | delete [] in_BRANCH_COMPLETE_BHT_HISTORY; |
---|
38 | if (_param._have_pht) |
---|
39 | delete [] in_BRANCH_COMPLETE_PHT_HISTORY; |
---|
40 | delete [] in_BRANCH_COMPLETE_DIRECTION ; |
---|
41 | |
---|
42 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
43 | |
---|
44 | if (_param._have_bht) |
---|
45 | delete component_Branch_History_Table ; |
---|
46 | if (_param._have_pht) |
---|
47 | delete component_Pattern_History_Table; |
---|
48 | delete component_Two_Level_Branch_Predictor_Glue; |
---|
49 | delete _component; |
---|
50 | |
---|
51 | log_printf(FUNC,Two_Level_Branch_Predictor,"deallocation","End"); |
---|
52 | }; |
---|
53 | |
---|
54 | }; // end namespace two_level_branch_predictor |
---|
55 | }; // end namespace meta_predictor |
---|
56 | }; // end namespace predictor |
---|
57 | }; // end namespace stage_1_ifetch |
---|
58 | |
---|
59 | }; // end namespace behavioural |
---|
60 | }; // end namespace morpheo |
---|
61 | #endif |
---|