basic.isa (4158:a3fb9e29c6ce) | basic.isa (4276:f0030662ee2a) |
---|---|
1// Copyright (c) 2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 133 unchanged lines hidden (view full) --- 142def template BasicDecode {{ 143 return new %(class_name)s(machInst); 144}}; 145 146// Basic decode template, passing mnemonic in as string arg to constructor. 147def template BasicDecodeWithMnemonic {{ 148 return new %(class_name)s("%(mnemonic)s", machInst); 149}}; | 1// Copyright (c) 2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 133 unchanged lines hidden (view full) --- 142def template BasicDecode {{ 143 return new %(class_name)s(machInst); 144}}; 145 146// Basic decode template, passing mnemonic in as string arg to constructor. 147def template BasicDecodeWithMnemonic {{ 148 return new %(class_name)s("%(mnemonic)s", machInst); 149}}; |
150 151// The most basic instruction format... used only for a few misc. insts 152def format BasicOperate(code, *flags) {{ 153 iop = InstObjParams(name, Name, 'SparcStaticInst', code, flags) 154 header_output = BasicDeclare.subst(iop) 155 decoder_output = BasicConstructor.subst(iop) 156 decode_block = BasicDecode.subst(iop) 157 exec_output = BasicExecute.subst(iop) 158}}; |
|