diff options
-rw-r--r-- | src/sim/faults.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/faults.hh b/src/sim/faults.hh index 747597152..47855e7c2 100644 --- a/src/sim/faults.hh +++ b/src/sim/faults.hh @@ -99,6 +99,7 @@ class GenericPageTableFault : public FaultBase GenericPageTableFault(Addr va) : vaddr(va) {} void invoke(ThreadContext * tc, const StaticInstPtr &inst = StaticInst::nullStaticInstPtr); + Addr getFaultVAddr() const { return vaddr; } }; class GenericAlignmentFault : public FaultBase @@ -110,6 +111,7 @@ class GenericAlignmentFault : public FaultBase GenericAlignmentFault(Addr va) : vaddr(va) {} void invoke(ThreadContext * tc, const StaticInstPtr &inst = StaticInst::nullStaticInstPtr); + Addr getFaultVAddr() const { return vaddr; } }; #endif // __FAULTS_HH__ |