From ddd3f43f8a590cd287cd3449ea6e49bc48dad06a Mon Sep 17 00:00:00 2001 From: Gabor Dozsa Date: Tue, 11 Jun 2019 11:47:16 +0100 Subject: [PATCH] sim: Add getter to fault virtual address Change-Id: Ifd493aee9e78b0b4ddcc71e90f48679543acb861 Signed-off-by: Giacomo Gabrielli Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19176 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini Tested-by: kokoro --- src/sim/faults.hh | 2 ++ 1 file changed, 2 insertions(+) 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__ -- 2.30.2