sim: Add getter to fault virtual address
Change-Id: Ifd493aee9e78b0b4ddcc71e90f48679543acb861 Signed-off-by: Giacomo Gabrielli <giacomo.gabrielli@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19176 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Giacomo Travaglini
parent
28059ffcdf
commit
ddd3f43f8a
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user