Changeset 101 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction/src
- Timestamp:
- Jan 15, 2009, 6:19:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction/src/Instruction.cpp
r100 r101 29 29 void instruction_decod (decod_instruction_t * inst, decod_param_t * param) 30 30 { 31 log_printf(TRACE,Decod,"instruction_decod"," * instruction : decod"); 32 31 33 // instruction_decod_type_0 (inst,param); 32 34 33 35 uint32_t opcod = range<uint32_t>(inst->_instruction,31,26); 36 37 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 38 34 39 (* param->_function_decod[ 0][opcod]) (inst,param); 35 40 } … … 43 48 void instruction_decod_type_1 (decod_instruction_t * inst, decod_param_t * param) 44 49 { 50 log_printf(TRACE,Decod,"instruction_decod_type_1"," * instruction : decod type_1"); 51 45 52 uint32_t opcod = range<uint32_t>(inst->_instruction, 7, 0); 53 54 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 55 46 56 (* param->_function_decod[ 1][opcod]) (inst,param); 47 57 } … … 49 59 void instruction_decod_type_2 (decod_instruction_t * inst, decod_param_t * param) 50 60 { 61 log_printf(TRACE,Decod,"instruction_decod_type_2"," * instruction : decod type_2"); 62 51 63 uint32_t opcod = range<uint32_t>(inst->_instruction, 7, 0); 64 65 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 66 52 67 (* param->_function_decod[ 2][opcod]) (inst,param); 53 68 } … … 55 70 void instruction_decod_type_3 (decod_instruction_t * inst, decod_param_t * param) 56 71 { 72 log_printf(TRACE,Decod,"instruction_decod_type_3"," * instruction : decod type_3"); 73 57 74 uint32_t opcod = ((range<uint32_t>(inst->_instruction, 9, 8)<<4) | 58 75 (range<uint32_t>(inst->_instruction, 3, 0))); 76 77 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 78 59 79 (* param->_function_decod[ 3][opcod]) (inst,param); 60 80 } … … 62 82 void instruction_decod_type_4 (decod_instruction_t * inst, decod_param_t * param) 63 83 { 84 log_printf(TRACE,Decod,"instruction_decod_type_4"," * instruction : decod type_4"); 85 64 86 uint32_t opcod = range<uint32_t>(inst->_instruction,25,21); 87 88 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 89 65 90 (* param->_function_decod[ 4][opcod]) (inst,param); 66 91 } … … 68 93 void instruction_decod_type_5 (decod_instruction_t * inst, decod_param_t * param) 69 94 { 95 log_printf(TRACE,Decod,"instruction_decod_type_5"," * instruction : decod type_5"); 96 70 97 uint32_t opcod = range<uint32_t>(inst->_instruction,25,21); 98 99 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 100 71 101 (* param->_function_decod[ 5][opcod]) (inst,param); 72 102 } … … 74 104 void instruction_decod_type_6 (decod_instruction_t * inst, decod_param_t * param) 75 105 { 106 log_printf(TRACE,Decod,"instruction_decod_type_6"," * instruction : decod type_6"); 107 76 108 uint32_t opcod = range<uint32_t>(inst->_instruction, 7, 6); 109 110 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 111 77 112 (* param->_function_decod[ 6][opcod]) (inst,param); 78 113 } … … 80 115 void instruction_decod_type_7 (decod_instruction_t * inst, decod_param_t * param) 81 116 { 117 log_printf(TRACE,Decod,"instruction_decod_type_7"," * instruction : decod type_7"); 118 82 119 uint32_t opcod = range<uint32_t>(inst->_instruction, 3, 0); 120 121 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 122 83 123 (* param->_function_decod[ 7][opcod]) (inst,param); 84 124 } … … 86 126 void instruction_decod_type_8 (decod_instruction_t * inst, decod_param_t * param) 87 127 { 128 log_printf(TRACE,Decod,"instruction_decod_type_8"," * instruction : decod type_8"); 129 88 130 uint32_t opcod = range<uint32_t>(inst->_instruction,16,16); 131 132 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 133 89 134 (* param->_function_decod[ 8][opcod]) (inst,param); 90 135 } … … 92 137 void instruction_decod_type_9 (decod_instruction_t * inst, decod_param_t * param) 93 138 { 139 log_printf(TRACE,Decod,"instruction_decod_type_9"," * instruction : decod type_9"); 140 94 141 uint32_t opcod = range<uint32_t>(inst->_instruction,25,23); 142 143 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 144 95 145 (* param->_function_decod[ 9][opcod]) (inst,param); 96 146 } … … 98 148 void instruction_decod_type_10 (decod_instruction_t * inst, decod_param_t * param) 99 149 { 150 log_printf(TRACE,Decod,"instruction_decod_type_10"," * instruction : decod type_10"); 151 100 152 uint32_t opcod = range<uint32_t>(inst->_instruction,25,24); 153 154 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 155 101 156 (* param->_function_decod[10][opcod]) (inst,param); 102 157 } … … 104 159 void instruction_decod_type_11 (decod_instruction_t * inst, decod_param_t * param) 105 160 { 161 log_printf(TRACE,Decod,"instruction_decod_type_11"," * instruction : decod type_11"); 162 106 163 uint32_t opcod = range<uint32_t>(inst->_instruction, 7, 6); 164 165 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 166 107 167 (* param->_function_decod[11][opcod]) (inst,param); 108 168 } … … 110 170 void instruction_decod_type_12 (decod_instruction_t * inst, decod_param_t * param) 111 171 { 172 log_printf(TRACE,Decod,"instruction_decod_type_12"," * instruction : decod type_12"); 173 112 174 uint32_t opcod = range<uint32_t>(inst->_instruction, 7, 6); 175 176 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 177 113 178 (* param->_function_decod[12][opcod]) (inst,param); 114 179 } … … 116 181 void instruction_decod_type_13 (decod_instruction_t * inst, decod_param_t * param) 117 182 { 183 log_printf(TRACE,Decod,"instruction_decod_type_13"," * instruction : decod type_13"); 184 118 185 uint32_t opcod = range<uint32_t>(inst->_instruction, 7, 6); 186 187 log_printf(TRACE,Decod,"instruction_decod"," * opcod : %d (0x%x)",opcod,opcod); 188 119 189 (* param->_function_decod[13][opcod]) (inst,param); 120 190 } … … 122 192 void instruction_illegal (decod_instruction_t * inst, decod_param_t * param) 123 193 { 124 log_printf(TRACE,Decod,"instruction_illegal","instruction_illegal"); 194 log_printf(TRACE,Decod,"instruction_illegal"," * instruction : illegal"); 195 196 msgWarning(_("Instruction \"%.8x\" at address \"%.8x\" is illegal.\n"),inst->_instruction,inst->_address); 125 197 126 198 inst->_exception_use = EXCEPTION_USE_ILLEGAL_INSTRUCTION;
Note: See TracChangeset
for help on using the changeset viewer.