syscall.isa (7087:fb8d5786ff30) | syscall.isa (10196:be0e1724eb39) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 60 unchanged lines hidden (view full) --- 69 printMnemonic(response, mnemonic); 70 ccprintf(response, " "); 71 printReg(response, _srcRegIdx[0], machInst.opSize); 72 return response.str(); 73 } 74}}; 75 76def template SyscallExecute {{ | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 60 unchanged lines hidden (view full) --- 69 printMnemonic(response, mnemonic); 70 ccprintf(response, " "); 71 printReg(response, _srcRegIdx[0], machInst.opSize); 72 return response.str(); 73 } 74}}; 75 76def template SyscallExecute {{ |
77 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, | 77 Fault %(class_name)s::execute(CPU_EXEC_CONTEXT *xc, |
78 Trace::InstRecord *traceData) const 79 { 80 Fault fault = NoFault; 81 %(op_decl)s; 82 %(op_rd)s; 83 %(code)s; 84 return fault; 85 } 86}}; 87 88def format SyscallInst(code, *opt_flags) {{ 89 iop = InstObjParams(name, Name, 'SyscallInst', code, opt_flags) 90 header_output = BasicDeclare.subst(iop) 91 decoder_output = BasicConstructor.subst(iop) 92 decode_block = BasicDecode.subst(iop) 93 exec_output = SyscallExecute.subst(iop) 94}}; 95 | 78 Trace::InstRecord *traceData) const 79 { 80 Fault fault = NoFault; 81 %(op_decl)s; 82 %(op_rd)s; 83 %(code)s; 84 return fault; 85 } 86}}; 87 88def format SyscallInst(code, *opt_flags) {{ 89 iop = InstObjParams(name, Name, 'SyscallInst', code, opt_flags) 90 header_output = BasicDeclare.subst(iop) 91 decoder_output = BasicConstructor.subst(iop) 92 decode_block = BasicDecode.subst(iop) 93 exec_output = SyscallExecute.subst(iop) 94}}; 95 |