nop.isa (10196:be0e1724eb39) nop.isa (12234:78ece221f9f5)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 Advanced Micro Devices, Inc.
4// All rights reserved.
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

--- 58 unchanged lines hidden (view full) ---

67 std::stringstream response;
68
69 printMnemonic(response, mnemonic);
70 return response.str();
71 }
72}};
73
74def template NopExecute {{
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 Advanced Micro Devices, Inc.
4// All rights reserved.
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

--- 58 unchanged lines hidden (view full) ---

67 std::stringstream response;
68
69 printMnemonic(response, mnemonic);
70 return response.str();
71 }
72}};
73
74def template NopExecute {{
75 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc,
75 Fault %(class_name)s::execute(ExecContext *xc,
76 Trace::InstRecord *traceData) const
77 {
78 return NoFault;
79 }
80}};
81
82def format NopInst(*opt_flags) {{
83 iop = InstObjParams(name, Name, 'NopInst', "", opt_flags)
84 header_output = BasicDeclare.subst(iop)
85 decoder_output = BasicConstructor.subst(iop)
86 decode_block = BasicDecode.subst(iop)
87 exec_output = NopExecute.subst(iop)
88}};
89
76 Trace::InstRecord *traceData) const
77 {
78 return NoFault;
79 }
80}};
81
82def format NopInst(*opt_flags) {{
83 iop = InstObjParams(name, Name, 'NopInst', "", opt_flags)
84 header_output = BasicDeclare.subst(iop)
85 decoder_output = BasicConstructor.subst(iop)
86 decode_block = BasicDecode.subst(iop)
87 exec_output = NopExecute.subst(iop)
88}};
89