basic.isa (5145:e0e56dded499) basic.isa (5789:46c548dbe620)
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
151def format BasicOperate(code, *flags) {{
152 iop = InstObjParams(name, Name, 'X86ISA::X86StaticInst', code, flags)
153 header_output = BasicDeclare.subst(iop)
154 decoder_output = BasicConstructor.subst(iop)
155 decode_block = BasicDecode.subst(iop)
156 exec_output = BasicExecute.subst(iop)
157}};