basic.isa (3384:510f95cd22df) basic.isa (3792:dae368e56d0e)
1// Copyright (c) 2006 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

--- 81 unchanged lines hidden (view full) ---

90
91// Basic decode template, passing mnemonic in as string arg to constructor.
92def template BasicDecodeWithMnemonic {{
93 return new %(class_name)s("%(mnemonic)s", machInst);
94}};
95
96// The most basic instruction format... used only for a few misc. insts
97def format BasicOperate(code, *flags) {{
1// Copyright (c) 2006 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

--- 81 unchanged lines hidden (view full) ---

90
91// Basic decode template, passing mnemonic in as string arg to constructor.
92def template BasicDecodeWithMnemonic {{
93 return new %(class_name)s("%(mnemonic)s", machInst);
94}};
95
96// The most basic instruction format... used only for a few misc. insts
97def format BasicOperate(code, *flags) {{
98 iop = InstObjParams(name, Name, 'SparcStaticInst',
99 CodeBlock(code), flags)
98 iop = InstObjParams(name, Name, 'SparcStaticInst', code, flags)
100 header_output = BasicDeclare.subst(iop)
101 decoder_output = BasicConstructor.subst(iop)
102 decode_block = BasicDecode.subst(iop)
103 exec_output = BasicExecute.subst(iop)
104}};
99 header_output = BasicDeclare.subst(iop)
100 decoder_output = BasicConstructor.subst(iop)
101 decode_block = BasicDecode.subst(iop)
102 exec_output = BasicExecute.subst(iop)
103}};