trap.isa (3995:ef17a5754312) trap.isa (3996:e19c36743441)
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

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

77 Fault fault = NoFault;
78 %(op_decl)s;
79 %(op_rd)s;
80 %(code)s
81 return fault;
82 }
83}};
84
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

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

77 Fault fault = NoFault;
78 %(op_decl)s;
79 %(op_rd)s;
80 %(code)s
81 return fault;
82 }
83}};
84
85def template FpUnimplExecute {{
86 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
87 Trace::InstRecord *traceData) const
88 {
89 Fault fault = NoFault;
90 %(op_decl)s;
91 %(op_rd)s;
92 %(code)s
93 %(op_wb)s;
94 return fault;
95 }
96}};
97
85def format Trap(code, *opt_flags) {{
86 iop = InstObjParams(name, Name, 'Trap', code, opt_flags)
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}};
92

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

112 fpunimpl_code = '''
113 Fsr = insertBits(Fsr, 16, 14, 3);
114 fault = new FpExceptionOther;
115 '''
116 iop = InstObjParams(name, Name, 'FpUnimpl', fpunimpl_code, flags)
117 header_output = BasicDeclare.subst(iop)
118 decoder_output = BasicConstructor.subst(iop)
119 decode_block = BasicDecode.subst(iop)
98def format Trap(code, *opt_flags) {{
99 iop = InstObjParams(name, Name, 'Trap', code, opt_flags)
100 header_output = BasicDeclare.subst(iop)
101 decoder_output = BasicConstructor.subst(iop)
102 decode_block = BasicDecode.subst(iop)
103 exec_output = TrapExecute.subst(iop)
104}};
105

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

125 fpunimpl_code = '''
126 Fsr = insertBits(Fsr, 16, 14, 3);
127 fault = new FpExceptionOther;
128 '''
129 iop = InstObjParams(name, Name, 'FpUnimpl', fpunimpl_code, flags)
130 header_output = BasicDeclare.subst(iop)
131 decoder_output = BasicConstructor.subst(iop)
132 decode_block = BasicDecode.subst(iop)
120 exec_output = TrapExecute.subst(iop)
133 exec_output = FpUnimplExecute.subst(iop)
121}};
134}};