pal.isa (2670:9107b8bd08cd) | pal.isa (3953:300d526414e6) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 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 --- 54 unchanged lines hidden (view full) --- 63 return csprintf("%s %s", "call_pal", mnemonic); 64#else 65 return csprintf("%-10s %s", "call_pal", mnemonic); 66#endif 67 } 68}}; 69 70def format EmulatedCallPal(code, *flags) {{ | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 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 --- 54 unchanged lines hidden (view full) --- 63 return csprintf("%s %s", "call_pal", mnemonic); 64#else 65 return csprintf("%-10s %s", "call_pal", mnemonic); 66#endif 67 } 68}}; 69 70def format EmulatedCallPal(code, *flags) {{ |
71 iop = InstObjParams(name, Name, 'EmulatedCallPal', CodeBlock(code), flags) | 71 iop = InstObjParams(name, Name, 'EmulatedCallPal', code, flags) |
72 header_output = BasicDeclare.subst(iop) 73 decoder_output = BasicConstructor.subst(iop) 74 decode_block = BasicDecode.subst(iop) 75 exec_output = BasicExecute.subst(iop) 76}}; 77 78output header {{ 79 /** --- 46 unchanged lines hidden (view full) --- 126 std::string 127 CallPalBase::generateDisassembly(Addr pc, const SymbolTable *symtab) const 128 { 129 return csprintf("%-10s %#x", "call_pal", palFunc); 130 } 131}}; 132 133def format CallPal(code, *flags) {{ | 72 header_output = BasicDeclare.subst(iop) 73 decoder_output = BasicConstructor.subst(iop) 74 decode_block = BasicDecode.subst(iop) 75 exec_output = BasicExecute.subst(iop) 76}}; 77 78output header {{ 79 /** --- 46 unchanged lines hidden (view full) --- 126 std::string 127 CallPalBase::generateDisassembly(Addr pc, const SymbolTable *symtab) const 128 { 129 return csprintf("%-10s %#x", "call_pal", palFunc); 130 } 131}}; 132 133def format CallPal(code, *flags) {{ |
134 iop = InstObjParams(name, Name, 'CallPalBase', CodeBlock(code), flags) | 134 iop = InstObjParams(name, Name, 'CallPalBase', code, flags) |
135 header_output = BasicDeclare.subst(iop) 136 decoder_output = BasicConstructor.subst(iop) 137 decode_block = BasicDecode.subst(iop) 138 exec_output = BasicExecute.subst(iop) 139}}; 140 141//////////////////////////////////////////////////////////////////// 142// --- 121 unchanged lines hidden (view full) --- 264 mnemonic, ipr_index, RA); 265 } 266 } 267}}; 268 269def format HwMoveIPR(code, *flags) {{ 270 all_flags = ['IprAccessOp'] 271 all_flags += flags | 135 header_output = BasicDeclare.subst(iop) 136 decoder_output = BasicConstructor.subst(iop) 137 decode_block = BasicDecode.subst(iop) 138 exec_output = BasicExecute.subst(iop) 139}}; 140 141//////////////////////////////////////////////////////////////////// 142// --- 121 unchanged lines hidden (view full) --- 264 mnemonic, ipr_index, RA); 265 } 266 } 267}}; 268 269def format HwMoveIPR(code, *flags) {{ 270 all_flags = ['IprAccessOp'] 271 all_flags += flags |
272 iop = InstObjParams(name, Name, 'HwMoveIPR', CodeBlock(code), 273 all_flags) | 272 iop = InstObjParams(name, Name, 'HwMoveIPR', code, all_flags) |
274 header_output = BasicDeclare.subst(iop) 275 decoder_output = BasicConstructor.subst(iop) 276 decode_block = BasicDecode.subst(iop) 277 exec_output = BasicExecute.subst(iop) 278}}; 279 280 | 273 header_output = BasicDeclare.subst(iop) 274 decoder_output = BasicConstructor.subst(iop) 275 decode_block = BasicDecode.subst(iop) 276 exec_output = BasicExecute.subst(iop) 277}}; 278 279 |