2006-01-29 23:25:54 +01:00
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Noop instruction
|
|
|
|
//
|
|
|
|
|
|
|
|
output header {{
|
|
|
|
/**
|
2006-03-07 10:33:10 +01:00
|
|
|
* Noop class.
|
2006-01-29 23:25:54 +01:00
|
|
|
*/
|
|
|
|
class Noop : public SparcStaticInst
|
|
|
|
{
|
2006-03-07 10:33:10 +01:00
|
|
|
protected:
|
|
|
|
// Constructor
|
|
|
|
Noop(const char *mnem, MachInst _machInst, OpClass __opClass) :
|
|
|
|
SparcStaticInst(mnem, _machInst, __opClass)
|
|
|
|
{
|
|
|
|
}
|
2006-01-29 23:25:54 +01:00
|
|
|
|
2006-03-07 10:33:10 +01:00
|
|
|
std::string generateDisassembly(Addr pc,
|
|
|
|
const SymbolTable *symtab) const;
|
2006-01-29 23:25:54 +01:00
|
|
|
};
|
|
|
|
}};
|
|
|
|
|
|
|
|
output decoder {{
|
2006-03-07 10:33:10 +01:00
|
|
|
std::string Noop::generateDisassembly(Addr pc,
|
|
|
|
const SymbolTable *symtab) const
|
2006-01-29 23:25:54 +01:00
|
|
|
{
|
2006-03-07 10:33:10 +01:00
|
|
|
return "Noop\n";
|
2006-01-29 23:25:54 +01:00
|
|
|
}
|
|
|
|
}};
|
|
|
|
|
|
|
|
def template NoopExecute {{
|
2006-03-07 10:33:10 +01:00
|
|
|
Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
|
|
|
|
Trace::InstRecord *traceData) const
|
2006-01-29 23:25:54 +01:00
|
|
|
{
|
2006-03-07 10:33:10 +01:00
|
|
|
//Nothing to see here, move along
|
|
|
|
return NoFault;
|
2006-01-29 23:25:54 +01:00
|
|
|
}
|
|
|
|
}};
|
|
|
|
|
|
|
|
// Primary format for integer operate instructions:
|
|
|
|
def format Noop(code, *opt_flags) {{
|
|
|
|
orig_code = code
|
|
|
|
cblk = CodeBlock(code)
|
|
|
|
iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
|
|
|
|
header_output = BasicDeclare.subst(iop)
|
|
|
|
decoder_output = BasicConstructor.subst(iop)
|
|
|
|
decode_block = BasicDecodeWithMnemonic.subst(iop)
|
|
|
|
exec_output = NoopExecute.subst(iop)
|
|
|
|
}};
|