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 |
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}}; |