basic.isa (2944:10dcffb2904f) basic.isa (3272:c28038eaefb8)
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

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

75 }
76}};
77
78// Basic decode template.
79def template BasicDecode {{
80 return new %(class_name)s(machInst);
81}};
82
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

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

75 }
76}};
77
78// Basic decode template.
79def template BasicDecode {{
80 return new %(class_name)s(machInst);
81}};
82
83// Basic decode template, passing mnemonic in as string arg to constructor.
84def template BasicDecodeWithMnemonic {{
85 return new %(class_name)s("%(mnemonic)s", machInst);
86}};
87
83// The most basic instruction format... used only for a few misc. insts
84def format BasicOperate(code, *flags) {{
85 iop = InstObjParams(name, Name, 'SparcStaticInst',
86 CodeBlock(code), flags)
87 header_output = BasicDeclare.subst(iop)
88 decoder_output = BasicConstructor.subst(iop)
89 decode_block = BasicDecode.subst(iop)
90 exec_output = BasicExecute.subst(iop)
91}};
88// The most basic instruction format... used only for a few misc. insts
89def format BasicOperate(code, *flags) {{
90 iop = InstObjParams(name, Name, 'SparcStaticInst',
91 CodeBlock(code), flags)
92 header_output = BasicDeclare.subst(iop)
93 decoder_output = BasicConstructor.subst(iop)
94 decode_block = BasicDecode.subst(iop)
95 exec_output = BasicExecute.subst(iop)
96}};