summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-07-18 16:09:00 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-07-18 16:09:00 -0700
commit6fbcb225af4b17c9c9695c6a1d9ee2254ceae1af (patch)
tree32fb5883ada450b1a86b28bcf5f9ef549fe88469 /src/sim
parent85f32920fb2e4b4938cefcfc275c09abef20cf11 (diff)
downloadgem5-6fbcb225af4b17c9c9695c6a1d9ee2254ceae1af.tar.xz
Make name, isMachineCheckFault, and isAlignmentFault const.
--HG-- extra : convert_revision : a27e0cbdfcb2a5fdc5979686f887cec7d106542b
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/faults.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sim/faults.hh b/src/sim/faults.hh
index 2f0b5af62..f2e638945 100644
--- a/src/sim/faults.hh
+++ b/src/sim/faults.hh
@@ -53,12 +53,12 @@ typedef Stats::Scalar<> FaultStat;
class FaultBase : public RefCounted
{
public:
- virtual FaultName name() = 0;
+ virtual FaultName name() const = 0;
virtual void invoke(ThreadContext * tc);
// template<typename T>
// bool isA() {return dynamic_cast<T *>(this);}
- virtual bool isMachineCheckFault() {return false;}
- virtual bool isAlignmentFault() {return false;}
+ virtual bool isMachineCheckFault() const {return false;}
+ virtual bool isAlignmentFault() const {return false;}
};
FaultBase * const NoFault = 0;
@@ -72,7 +72,7 @@ class UnimpFault : public FaultBase
: panicStr(_str)
{ }
- FaultName name() {return "Unimplemented simulator feature";}
+ FaultName name() const {return "Unimplemented simulator feature";}
void invoke(ThreadContext * tc);
};
@@ -82,7 +82,7 @@ class PageTableFault : public FaultBase
private:
Addr vaddr;
public:
- FaultName name() {return "M5 page table fault";}
+ FaultName name() const {return "M5 page table fault";}
PageTableFault(Addr va) : vaddr(va) {}
void invoke(ThreadContext * tc);
};