trap.isa (2632:1bb2f91485ea) trap.isa (3792:dae368e56d0e)
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

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

78 %(op_decl)s;
79 %(op_rd)s;
80 %(code)s
81 return fault;
82 }
83}};
84
85def format Trap(code, *opt_flags) {{
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

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

78 %(op_decl)s;
79 %(op_rd)s;
80 %(code)s
81 return fault;
82 }
83}};
84
85def format Trap(code, *opt_flags) {{
86 orig_code = code
87 cblk = CodeBlock(code)
88 iop = InstObjParams(name, Name, 'Trap', cblk, opt_flags)
86 iop = InstObjParams(name, Name, 'Trap', code, opt_flags)
89 header_output = BasicDeclare.subst(iop)
90 decoder_output = BasicConstructor.subst(iop)
91 decode_block = BasicDecode.subst(iop)
92 exec_output = TrapExecute.subst(iop)
93}};
87 header_output = BasicDeclare.subst(iop)
88 decoder_output = BasicConstructor.subst(iop)
89 decode_block = BasicDecode.subst(iop)
90 exec_output = TrapExecute.subst(iop)
91}};