[78] | 1 | /* |
---|
| 2 | * $Id: Branch_Target_Buffer_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/include/Branch_Target_Buffer.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace core { |
---|
| 13 | namespace multi_front_end { |
---|
| 14 | namespace front_end { |
---|
| 15 | namespace prediction_unit { |
---|
| 16 | namespace branch_target_buffer { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Branch_Target_Buffer::deallocation" |
---|
| 21 | void Branch_Target_Buffer::deallocation (void) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Branch_Target_Buffer,FUNCTION,"Begin"); |
---|
| 24 | |
---|
[88] | 25 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[78] | 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 [] in_PREDICT_ADDRESS ; |
---|
| 35 | delete [] out_PREDICT_HIT ; |
---|
| 36 | delete [] out_PREDICT_ADDRESS_SRC ; |
---|
| 37 | delete [] out_PREDICT_ADDRESS_DEST ; |
---|
| 38 | delete [] out_PREDICT_CONDITION ; |
---|
| 39 | delete [] out_PREDICT_LAST_TAKE ; |
---|
| 40 | delete [] out_PREDICT_IS_ACCURATE ; |
---|
| 41 | |
---|
| 42 | delete [] in_DECOD_VAL ; |
---|
| 43 | delete [] out_DECOD_ACK ; |
---|
| 44 | if (_param->_have_port_context_id) |
---|
| 45 | delete [] in_DECOD_CONTEXT_ID ; |
---|
| 46 | delete [] in_DECOD_ADDRESS_SRC ; |
---|
| 47 | delete [] in_DECOD_ADDRESS_DEST ; |
---|
| 48 | delete [] in_DECOD_CONDITION ; |
---|
| 49 | delete [] in_DECOD_LAST_TAKE ; |
---|
| 50 | delete [] in_DECOD_MISS_PREDICTION ; |
---|
[82] | 51 | delete [] in_DECOD_IS_ACCURATE ; |
---|
[78] | 52 | |
---|
| 53 | delete [] in_UPDATE_VAL ; |
---|
| 54 | delete [] out_UPDATE_ACK ; |
---|
| 55 | if (_param->_have_port_context_id) |
---|
| 56 | delete [] in_UPDATE_CONTEXT_ID ; |
---|
| 57 | delete [] in_UPDATE_ADDRESS_SRC ; |
---|
| 58 | delete [] in_UPDATE_ADDRESS_DEST ; |
---|
| 59 | delete [] in_UPDATE_CONDITION ; |
---|
| 60 | delete [] in_UPDATE_LAST_TAKE ; |
---|
| 61 | delete [] in_UPDATE_MISS_PREDICTION; |
---|
| 62 | } |
---|
| 63 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 64 | |
---|
| 65 | if (_param->_have_component_victim) |
---|
| 66 | { |
---|
| 67 | delete [] _component_sort; |
---|
| 68 | delete _component_victim; |
---|
| 69 | } |
---|
| 70 | delete _component_branch_target_buffer_glue; |
---|
| 71 | delete _component_branch_target_buffer_register; |
---|
| 72 | |
---|
| 73 | delete _component; |
---|
| 74 | |
---|
| 75 | log_printf(FUNC,Branch_Target_Buffer,FUNCTION,"End"); |
---|
| 76 | }; |
---|
| 77 | |
---|
| 78 | }; // end namespace branch_target_buffer |
---|
| 79 | }; // end namespace prediction_unit |
---|
| 80 | }; // end namespace front_end |
---|
| 81 | }; // end namespace multi_front_end |
---|
| 82 | }; // end namespace core |
---|
| 83 | |
---|
| 84 | }; // end namespace behavioural |
---|
| 85 | }; // end namespace morpheo |
---|