nop.isa (4992:2b83db7e88bb) | nop.isa (7741:340b6f01d69b) |
---|---|
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 --- 68 unchanged lines hidden (view full) --- 77 return response.str(); 78 } 79}}; 80 81def template NopExecute {{ 82 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, 83 Trace::InstRecord *traceData) const 84 { | 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 --- 68 unchanged lines hidden (view full) --- 77 return response.str(); 78 } 79}}; 80 81def template NopExecute {{ 82 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, 83 Trace::InstRecord *traceData) const 84 { |
85 //Nothing to see here, move along | 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}}; | 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}}; |