Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/src/Parameters.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 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/Return_Address_Stack/src/Parameters.cpp
r81 r88 25 25 uint32_t nb_inst_predict, 26 26 uint32_t nb_inst_decod , 27 uint32_t nb_inst_update ) 27 uint32_t nb_inst_update , 28 bool is_toplevel 29 ) 28 30 { 29 31 log_printf(FUNC,Return_Address_Stack,FUNCTION,"Begin"); … … 31 33 _nb_context = nb_context ; 32 34 _size_queue = size_queue ; 33 _size_address = size_address ;34 35 _nb_inst_predict = nb_inst_predict; 35 36 _nb_inst_decod = nb_inst_decod ; 36 37 _nb_inst_update = nb_inst_update ; 37 38 38 _size_context_id = log2(nb_context);39 39 _size_index = max<uint32_t>(size_queue,nb_context); 40 40 41 _have_port_context_id = _size_context_id > 0;41 test(); 42 42 43 test(); 43 if (is_toplevel) 44 { 45 _size_instruction_address = size_address ; 46 _size_context_id = log2(nb_context); 47 _have_port_context_id = _size_context_id > 0; 48 49 copy (); 50 } 51 44 52 log_printf(FUNC,Return_Address_Stack,FUNCTION,"End"); 45 53 }; … … 62 70 }; 63 71 72 #undef FUNCTION 73 #define FUNCTION "Return_Address_Stack::copy" 74 void Parameters::copy (void) 75 { 76 log_printf(FUNC,Return_Address_Stack,FUNCTION,"Begin"); 77 log_printf(FUNC,Return_Address_Stack,FUNCTION,"End"); 78 }; 79 64 80 }; // end namespace return_address_stack 65 81 }; // end namespace prediction_unit
Note: See TracChangeset
for help on using the changeset viewer.