source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/src/Return_Address_Stack_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: 2.5 KB
Line 
1/*
2 * $Id: Return_Address_Stack_deallocation.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/include/Return_Address_Stack.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace prediction_unit {
16namespace return_address_stack {
17
18
19#undef  FUNCTION
20#define FUNCTION "Return_Address_Stack::deallocation"
21  void Return_Address_Stack::deallocation (void)
22  {
23    log_printf(FUNC,Return_Address_Stack,FUNCTION,"Begin");
24
25    if (_usage & USE_SYSTEMC)
26      {
27        delete    in_CLOCK ;
28        delete    in_NRESET;
29
30        delete []  in_PREDICT_VAL          ;
31        delete [] out_PREDICT_ACK          ;
32        if (_param->_have_port_context_id)
33        delete []  in_PREDICT_CONTEXT_ID   ; 
34        delete [] out_PREDICT_HIT          ; 
35        delete []  in_PREDICT_PUSH         ;
36        delete []  in_PREDICT_ADDRESS_PUSH ;
37        delete [] out_PREDICT_ADDRESS_POP  ;
38        delete [] out_PREDICT_INDEX        ;
39        delete []  in_DECOD_VAL            ;
40        delete [] out_DECOD_ACK            ;
41        delete []  in_DECOD_PUSH           ;
42        if (_param->_have_port_context_id)
43        delete []  in_DECOD_CONTEXT_ID     ;
44        delete [] out_DECOD_HIT            ;
45        delete []  in_DECOD_ADDRESS_PUSH   ;
46        delete [] out_DECOD_ADDRESS_POP    ;
47        delete [] out_DECOD_INDEX          ;
48        delete []  in_DECOD_MISS_PREDICTION;
49        delete []  in_UPDATE_VAL           ;
50        delete [] out_UPDATE_ACK           ;
51        if (_param->_have_port_context_id)
52        delete []  in_UPDATE_CONTEXT_ID    ;
53        delete []  in_UPDATE_PUSH          ;
54        delete []  in_UPDATE_INDEX         ;
55        delete []  in_UPDATE_ADDRESS       ;
56        delete []  in_UPDATE_MISS_PREDICTION;
57        delete []  in_UPDATE_PREDICTION_IFETCH;
58      }
59
60    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
62    delete [] reg_stack;
63    delete [] reg_TOP;
64    delete [] reg_BOTTOM;
65    delete [] reg_NB_ELT;
66    delete [] reg_PREDICT_TOP;
67    delete [] reg_PREDICT_BOTTOM;
68    delete [] reg_PREDICT_NB_ELT;
69   
70    delete [] internal_PREDICT_ACK;
71    delete [] internal_PREDICT_HIT;
72    delete [] internal_DECOD_ACK;
73    delete [] internal_DECOD_HIT;
74    delete [] internal_UPDATE_ACK;
75
76    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
77
78    delete _component;
79
80    log_printf(FUNC,Return_Address_Stack,FUNCTION,"End");
81  };
82
83}; // end namespace return_address_stack
84}; // end namespace prediction_unit
85}; // end namespace front_end
86}; // end namespace multi_front_end
87}; // end namespace core
88
89}; // end namespace behavioural
90}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.