nop.isa (10196:be0e1724eb39) | nop.isa (12234:78ece221f9f5) |
---|---|
1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 21 unchanged lines hidden (view full) --- 30//////////////////////////////////////////////////////////////////// 31// 32// Nop instruction 33// 34 35// Per-cpu-model nop execute method. 36def template NopExec {{ 37 | 1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 21 unchanged lines hidden (view full) --- 30//////////////////////////////////////////////////////////////////// 31// 32// Nop instruction 33// 34 35// Per-cpu-model nop execute method. 36def template NopExec {{ 37 |
38 Fault execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const | 38 Fault execute(ExecContext *xc, Trace::InstRecord *traceData) const |
39 { 40 // Nothing to see here, move along 41 return NoFault; 42 } 43}}; 44 45output header {{ 46 /** --- 27 unchanged lines hidden (view full) --- 74 { 75 std::stringstream response; 76 printMnemonic(response, mnemonic); 77 return response.str(); 78 } 79}}; 80 81def template NopExecute {{ | 39 { 40 // Nothing to see here, move along 41 return NoFault; 42 } 43}}; 44 45output header {{ 46 /** --- 27 unchanged lines hidden (view full) --- 74 { 75 std::stringstream response; 76 printMnemonic(response, mnemonic); 77 return response.str(); 78 } 79}}; 80 81def template NopExecute {{ |
82 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, | 82 Fault %(class_name)s::execute(ExecContext *xc, |
83 Trace::InstRecord *traceData) const 84 { 85 // Nothing to see here, move along 86 return NoFault; 87 } 88}}; 89 90// Primary format for integer operate instructions: 91def format Nop(code, *opt_flags) {{ 92 iop = InstObjParams(name, Name, 'Nop', code, opt_flags) 93 header_output = BasicDeclare.subst(iop) 94 decoder_output = BasicConstructor.subst(iop) 95 decode_block = BasicDecode.subst(iop) 96 exec_output = NopExecute.subst(iop) 97}}; | 83 Trace::InstRecord *traceData) const 84 { 85 // Nothing to see here, move along 86 return NoFault; 87 } 88}}; 89 90// Primary format for integer operate instructions: 91def format Nop(code, *opt_flags) {{ 92 iop = InstObjParams(name, Name, 'Nop', code, opt_flags) 93 header_output = BasicDeclare.subst(iop) 94 decoder_output = BasicConstructor.subst(iop) 95 decode_block = BasicDecode.subst(iop) 96 exec_output = NopExecute.subst(iop) 97}}; |