tlbop.isa (5268:5bfc53fe60e7) | tlbop.isa (10196:be0e1724eb39) |
---|---|
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 {{ | 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(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const | 61 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, Trace::InstRecord *traceData) const |
62 { 63 //Write the resulting state to the execution context 64 %(op_wb)s; 65 66 //Call into the trap handler with the appropriate fault 67 return No_Fault; 68 } 69}}; 70 71// Primary format for integer operate instructions: 72def format TlbOp(code, *opt_flags) {{ 73 orig_code = code 74 cblk = code 75 iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags) 76 header_output = BasicDeclare.subst(iop) 77 decoder_output = BasicConstructor.subst(iop) 78 decode_block = BasicDecodeWithMnemonic.subst(iop) 79 exec_output = TlbOpExecute.subst(iop) 80}}; | 62 { 63 //Write the resulting state to the execution context 64 %(op_wb)s; 65 66 //Call into the trap handler with the appropriate fault 67 return No_Fault; 68 } 69}}; 70 71// Primary format for integer operate instructions: 72def format TlbOp(code, *opt_flags) {{ 73 orig_code = code 74 cblk = code 75 iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags) 76 header_output = BasicDeclare.subst(iop) 77 decoder_output = BasicConstructor.subst(iop) 78 decode_block = BasicDecodeWithMnemonic.subst(iop) 79 exec_output = TlbOpExecute.subst(iop) 80}}; |