1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 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 --- 309 unchanged lines hidden (view full) --- 318 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s) 319 { 320 %(constructor)s; 321 } 322}}; 323 324// Basic instruction class execute method template. 325def template BasicExecute {{ |
326 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, |
327 Trace::InstRecord *traceData) const 328 { 329 Fault fault = NoFault; 330 331 %(fp_enable_check)s; 332 %(op_decl)s; 333 %(op_rd)s; 334 %(code)s; --- 79 unchanged lines hidden (view full) --- 414#else 415 return csprintf("%-10s (%s)", "nop", originalDisassembly); 416#endif 417 } 418}}; 419 420output exec {{ 421 Fault |
422 Nop::execute(CPU_EXEC_CONTEXT *, Trace::InstRecord *) const |
423 { 424 return NoFault; 425 } 426}}; 427 428// integer & FP operate instructions use Rc as dest, so check for 429// Rc == 31 to detect nops 430def template OperateNopCheckDecode {{ --- 47 unchanged lines hidden --- |