tlbop.isa (2632:1bb2f91485ea) | tlbop.isa (2686:f0d591379ac3) |
---|---|
1// -*- mode:c++ -*- 2 |
|
1//////////////////////////////////////////////////////////////////// 2// 3// TlbOp instructions 4// 5 6output header {{ 7 /** 8 * Base class for integer operations. --- 16 unchanged lines hidden (view full) --- 25 { 26 return "Disassembly of integer instruction\n"; 27 } 28}}; 29 30def template TlbOpExecute {{ 31 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 32 { | 3//////////////////////////////////////////////////////////////////// 4// 5// TlbOp instructions 6// 7 8output header {{ 9 /** 10 * Base class for integer operations. --- 16 unchanged lines hidden (view full) --- 27 { 28 return "Disassembly of integer instruction\n"; 29 } 30}}; 31 32def template TlbOpExecute {{ 33 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 34 { |
33 //Call into the trap handler with the appropriate fault 34 return No_Fault; 35 } 36 | |
37 //Write the resulting state to the execution context 38 %(op_wb)s; 39 | 35 //Write the resulting state to the execution context 36 %(op_wb)s; 37 |
38 //Call into the trap handler with the appropriate fault |
|
40 return No_Fault; 41 } 42}}; 43 44// Primary format for integer operate instructions: 45def format TlbOp(code, *opt_flags) {{ 46 orig_code = code 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) 53}}; | 39 return No_Fault; 40 } 41}}; 42 43// Primary format for integer operate instructions: 44def format TlbOp(code, *opt_flags) {{ 45 orig_code = code 46 cblk = CodeBlock(code) 47 iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags) 48 header_output = BasicDeclare.subst(iop) 49 decoder_output = BasicConstructor.subst(iop) 50 decode_block = BasicDecodeWithMnemonic.subst(iop) 51 exec_output = TlbOpExecute.subst(iop) 52}}; |