1 ////////////////////////////////////////////////////////////////////
8 * Base class for integer operations.
10 class TlbOp : public MipsStaticInst
15 TlbOp(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass)
19 std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const;
24 std::string TlbOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const
26 return "Disassembly of integer instruction\n";
30 def template TlbOpExecute {{
31 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const
33 //Call into the trap handler with the appropriate fault
37 //Write the resulting state to the execution context
44 // Primary format for integer operate instructions:
45 def format TlbOp(code, *opt_flags) {{
47 cblk = CodeBlock(code)
48 iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
49 header_output = BasicDeclare.subst(iop)
50 decoder_output = BasicConstructor.subst(iop)
51 decode_block = BasicDecodeWithMnemonic.subst(iop)
52 exec_output = TlbOpExecute.subst(iop)