Changeset 82 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/src/Parameters.cpp
- Timestamp:
- May 1, 2008, 6:48:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/src/Parameters.cpp
r81 r82 43 43 44 44 _size_context_id = log2(nb_context); 45 _size_depth = log2(max<uint32_t>(size_queue,nb_context)); 45 _size_depth = new uint32_t[_nb_context]; 46 _have_port_depth = new bool [_nb_context]; 47 for (uint32_t i=0; i<_nb_context; i++) 48 { 49 _size_depth [i] = log2(_size_queue[i]); 50 _have_port_depth [i] = (_size_depth [i] > 0); 51 } 52 _max_size_depth = max<uint32_t>(_size_depth,_nb_context); 46 53 _max_size_ras_index = max<uint32_t>(_size_ras_index,nb_context); 47 54 48 55 _have_port_context_id = _size_context_id> 0; 49 _have_port_ depth = _size_depth> 0;56 _have_port_max_depth = _max_size_depth > 0; 50 57 _have_port_history = _size_history > 0; 51 58 … … 68 75 { 69 76 log_printf(FUNC,Update_Prediction_Table,FUNCTION,"Begin"); 77 delete [] _size_depth ; 78 delete [] _have_port_depth; 70 79 log_printf(FUNC,Update_Prediction_Table,FUNCTION,"End"); 71 80 };
Note: See TracChangeset
for help on using the changeset viewer.