faults.hh (5999:3cf8e71257e0) faults.hh (7630:ffea4f79784f)
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;

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

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

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

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() const = 0;
57 virtual void invoke(ThreadContext * tc);
58// template<typename T>
59// bool isA() {return dynamic_cast<T *>(this);}
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{

--- 34 unchanged lines hidden ---
58 virtual bool isMachineCheckFault() const {return false;}
59 virtual bool isAlignmentFault() const {return false;}
60};
61
62FaultBase * const NoFault = 0;
63
64class UnimpFault : public FaultBase
65{

--- 34 unchanged lines hidden ---