1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 MIPS Technologies, Inc. 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 119 unchanged lines hidden (view full) --- 128 129 130 }; 131 132}}; 133 134// HiLo instruction class execute method template. 135def template HiLoExecute {{ |
136 Fault %(class_name)s::execute( 137 ExecContext *xc, Trace::InstRecord *traceData) const |
138 { 139 Fault fault = NoFault; 140 141 %(fp_enable_check)s; 142 %(op_decl)s; 143 %(op_rd)s; 144 %(code)s; 145 146 if(fault == NoFault) 147 { 148 %(op_wb)s; 149 } 150 return fault; 151 } 152}}; 153 154// HiLoRsSel instruction class execute method template. 155def template HiLoRsSelExecute {{ |
156 Fault %(class_name)s::execute( 157 ExecContext *xc, Trace::InstRecord *traceData) const |
158 { 159 Fault fault = NoFault; 160 161 %(op_decl)s; 162 163 if( ACSRC > 0 && !isDspEnabled(xc) ) 164 { 165 fault = std::make_shared<DspStateDisabledFault>(); --- 9 unchanged lines hidden (view full) --- 175 %(op_wb)s; 176 } 177 return fault; 178 } 179}}; 180 181// HiLoRdSel instruction class execute method template. 182def template HiLoRdSelExecute {{ |
183 Fault %(class_name)s::execute( 184 ExecContext *xc, Trace::InstRecord *traceData) const |
185 { 186 Fault fault = NoFault; 187 188 %(op_decl)s; 189 190 if( ACDST > 0 && !isDspEnabled(xc) ) 191 { 192 fault = std::make_shared<DspStateDisabledFault>(); --- 192 unchanged lines hidden --- |