1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 MIPS Technologies, Inc. 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 44 unchanged lines hidden (view full) --- 53output decoder {{ 54 std::string TlbOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const 55 { 56 return "Disassembly of integer instruction\n"; 57 } 58}}; 59 60def template TlbOpExecute {{ |
61 Fault %(class_name)s::execute( 62 ExecContext *xc, Trace::InstRecord *traceData) const |
63 { 64 //Write the resulting state to the execution context 65 %(op_wb)s; 66 67 //Call into the trap handler with the appropriate fault 68 return No_Fault; 69 } 70}}; 71 72// Primary format for integer operate instructions: 73def format TlbOp(code, *opt_flags) {{ 74 orig_code = code 75 cblk = code 76 iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags) 77 header_output = BasicDeclare.subst(iop) 78 decoder_output = BasicConstructor.subst(iop) 79 decode_block = BasicDecodeWithMnemonic.subst(iop) 80 exec_output = TlbOpExecute.subst(iop) 81}}; |