faults.hh (7678:f19b6a3a8cec) | faults.hh (7867:3ee9e6c2e8f7) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 47 unchanged lines hidden (view full) --- 56 public: 57 virtual FaultName name() const = 0; 58 virtual void invoke(ThreadContext * tc, 59 StaticInstPtr inst = StaticInst::nullStaticInstPtr); 60 virtual bool isMachineCheckFault() const {return false;} 61 virtual bool isAlignmentFault() const {return false;} 62}; 63 | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 47 unchanged lines hidden (view full) --- 56 public: 57 virtual FaultName name() const = 0; 58 virtual void invoke(ThreadContext * tc, 59 StaticInstPtr inst = StaticInst::nullStaticInstPtr); 60 virtual bool isMachineCheckFault() const {return false;} 61 virtual bool isAlignmentFault() const {return false;} 62}; 63 |
64FaultBase * const NoFault = 0; 65 | |
66class UnimpFault : public FaultBase 67{ 68 private: 69 std::string panicStr; 70 public: 71 UnimpFault(std::string _str) 72 : panicStr(_str) 73 { } --- 31 unchanged lines hidden --- | 64class UnimpFault : public FaultBase 65{ 66 private: 67 std::string panicStr; 68 public: 69 UnimpFault(std::string _str) 70 : panicStr(_str) 71 { } --- 31 unchanged lines hidden --- |