trap.isa (2750:1cca27adb880) trap.isa (2751:4f7d9ca761f4)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-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

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

65 %(op_wb)s;
66
67 //Call into the trap handler with the appropriate fault
68 return No_Fault;
69 }
70}};
71
72def format Trap(code, *flags) {{
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-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

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

65 %(op_wb)s;
66
67 //Call into the trap handler with the appropriate fault
68 return No_Fault;
69 }
70}};
71
72def format Trap(code, *flags) {{
73 warn_code = 'warn(\"'
74 warn_code += 'Trap Exception Handler Is Currently Not Implemented.'
75 warn_code += '\");'
76 code = warn_code + "bool " + code
77
73 code = 'warn(\"'
74 code += 'Trap Exception Handler Is Currently Not Implemented.'
75 code += '\");'
78 iop = InstObjParams(name, Name, 'MipsStaticInst', CodeBlock(code), flags)
79 header_output = BasicDeclare.subst(iop)
80 decoder_output = BasicConstructor.subst(iop)
81 decode_block = BasicDecode.subst(iop)
82 exec_output = BasicExecute.subst(iop)
83}};
76 iop = InstObjParams(name, Name, 'MipsStaticInst', CodeBlock(code), flags)
77 header_output = BasicDeclare.subst(iop)
78 decoder_output = BasicConstructor.subst(iop)
79 decode_block = BasicDecode.subst(iop)
80 exec_output = BasicExecute.subst(iop)
81}};