source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_deallocation.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
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
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Two_Level_Branch_Predictor.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace direction {
18
19namespace meta_predictor {
20namespace 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;
27    delete in_NRESET;
28
29    delete []  in_PREDICT_VAL        ;
30    delete [] out_PREDICT_ACK        ;
31    delete []  in_PREDICT_ADDRESS    ;
32    if (_param._have_bht)
33    delete [] out_PREDICT_BHT_HISTORY;
34    if (_param._have_pht)
35    delete [] out_PREDICT_PHT_HISTORY;
36
37    delete []  in_BRANCH_COMPLETE_VAL        ;
38    delete [] out_BRANCH_COMPLETE_ACK        ;
39    delete []  in_BRANCH_COMPLETE_ADDRESS    ;
40    if (_param._have_bht)
41    delete []  in_BRANCH_COMPLETE_BHT_HISTORY;
42    if (_param._have_pht)
43    delete []  in_BRANCH_COMPLETE_PHT_HISTORY;
44    delete []  in_BRANCH_COMPLETE_DIRECTION  ;
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;
53    delete _component;
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
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
68}; // end namespace behavioural
69}; // end namespace morpheo             
70#endif
Note: See TracBrowser for help on using the repository browser.