faults.hh (2680:246e7104f744) | faults.hh (2800:18a615ca6e19) |
---|---|
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; --- 40 unchanged lines hidden (view full) --- 49// which are being accessed cast as a FaultBase * (namely 50// all faults returned using the Fault type) will use the 51// generic FaultBase name. 52 53class FaultBase : public RefCounted 54{ 55 public: 56 virtual FaultName name() = 0; | 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; --- 40 unchanged lines hidden (view full) --- 49// which are being accessed cast as a FaultBase * (namely 50// all faults returned using the Fault type) will use the 51// generic FaultBase name. 52 53class FaultBase : public RefCounted 54{ 55 public: 56 virtual FaultName name() = 0; |
57#if FULL_SYSTEM | |
58 virtual void invoke(ThreadContext * tc); | 57 virtual void invoke(ThreadContext * tc); |
59#else 60 virtual void invoke(ThreadContext * tc); 61#endif | |
62// template<typename T> 63// bool isA() {return dynamic_cast<T *>(this);} 64 virtual bool isMachineCheckFault() {return false;} 65 virtual bool isAlignmentFault() {return false;} 66}; 67 68FaultBase * const NoFault = 0; 69 --- 14 unchanged lines hidden --- | 58// template<typename T> 59// bool isA() {return dynamic_cast<T *>(this);} 60 virtual bool isMachineCheckFault() {return false;} 61 virtual bool isAlignmentFault() {return false;} 62}; 63 64FaultBase * const NoFault = 0; 65 --- 14 unchanged lines hidden --- |