Deleted Added
sdiff udiff text old ( 2944:10dcffb2904f ) new ( 3272:c28038eaefb8 )
full compact
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// 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}};