basic.isa (3937:a210ce8d4546) basic.isa (3980:9bcb2a2e9bb8)
1// Copyright (c) 2006-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

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

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

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

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