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 virtual void invoke(ThreadContext * tc); |
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 --- |