noop.isa (2754:e3d023bc752c) noop.isa (3951:727778d649ae)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2006 The Regents of The University of Michigan
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

120 // }
121 return i;
122 }
123}};
124
125
126// Like BasicOperate format, but generates NOP if RC/FC == 31
127def format BasicOperateWithNopCheck(code, *opt_args) {{
1// -*- mode:c++ -*-
2
3// Copyright (c) 2006 The Regents of The University of Michigan
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

120 // }
121 return i;
122 }
123}};
124
125
126// Like BasicOperate format, but generates NOP if RC/FC == 31
127def format BasicOperateWithNopCheck(code, *opt_args) {{
128 iop = InstObjParams(name, Name, 'MipsStaticInst', CodeBlock(code),
128 iop = InstObjParams(name, Name, 'MipsStaticInst', code,
129 opt_args)
130 header_output = BasicDeclare.subst(iop)
131 decoder_output = BasicConstructor.subst(iop)
132 decode_block = OperateNopCheckDecode.subst(iop)
133 exec_output = BasicExecute.subst(iop)
134}};
135
136def format Nop() {{
137 decode_block = 'return new Nop(\"\",machInst);\n'
138}};
139
129 opt_args)
130 header_output = BasicDeclare.subst(iop)
131 decoder_output = BasicConstructor.subst(iop)
132 decode_block = OperateNopCheckDecode.subst(iop)
133 exec_output = BasicExecute.subst(iop)
134}};
135
136def format Nop() {{
137 decode_block = 'return new Nop(\"\",machInst);\n'
138}};
139