control.isa (2754:e3d023bc752c) control.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

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

125 std::stringstream ss;
126 ccprintf(ss, "%-10s r%d, f%d", mnemonic, RT, FS);
127 return ss.str();
128 }
129
130}};
131
132def format System(code, *flags) {{
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

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

125 std::stringstream ss;
126 ccprintf(ss, "%-10s r%d, f%d", mnemonic, RT, FS);
127 return ss.str();
128 }
129
130}};
131
132def format System(code, *flags) {{
133 iop = InstObjParams(name, Name, 'Control', CodeBlock(code), flags)
133 iop = InstObjParams(name, Name, 'Control', code, flags)
134 header_output = BasicDeclare.subst(iop)
135 decoder_output = BasicConstructor.subst(iop)
136 decode_block = BasicDecode.subst(iop)
137 exec_output = BasicExecute.subst(iop)
138}};
139
140def format CP0Control(code, *flags) {{
134 header_output = BasicDeclare.subst(iop)
135 decoder_output = BasicConstructor.subst(iop)
136 decode_block = BasicDecode.subst(iop)
137 exec_output = BasicExecute.subst(iop)
138}};
139
140def format CP0Control(code, *flags) {{
141 iop = InstObjParams(name, Name, 'CP0Control', CodeBlock(code), flags)
141 iop = InstObjParams(name, Name, 'CP0Control', code, flags)
142 header_output = BasicDeclare.subst(iop)
143 decoder_output = BasicConstructor.subst(iop)
144 decode_block = BasicDecode.subst(iop)
145 exec_output = BasicExecute.subst(iop)
146}};
147
148def format CP1Control(code, *flags) {{
142 header_output = BasicDeclare.subst(iop)
143 decoder_output = BasicConstructor.subst(iop)
144 decode_block = BasicDecode.subst(iop)
145 exec_output = BasicExecute.subst(iop)
146}};
147
148def format CP1Control(code, *flags) {{
149 iop = InstObjParams(name, Name, 'CP1Control', CodeBlock(code), flags)
149 iop = InstObjParams(name, Name, 'CP1Control', code, flags)
150 header_output = BasicDeclare.subst(iop)
151 decoder_output = BasicConstructor.subst(iop)
152 decode_block = BasicDecode.subst(iop)
153 exec_output = BasicExecute.subst(iop)
154}};
155
156
150 header_output = BasicDeclare.subst(iop)
151 decoder_output = BasicConstructor.subst(iop)
152 decode_block = BasicDecode.subst(iop)
153 exec_output = BasicExecute.subst(iop)
154}};
155
156