diff options
author | Gabor Dozsa <gabor.dozsa@arm.com> | 2019-06-11 11:47:16 +0100 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2019-07-18 15:09:22 +0000 |
commit | ddd3f43f8a590cd287cd3449ea6e49bc48dad06a (patch) | |
tree | fa6a56471a38b737fab595b974f164e1dcbe35d1 | |
parent | 28059ffcdf50871b1be573c29a656da9473287d1 (diff) | |
download | gem5-ddd3f43f8a590cd287cd3449ea6e49bc48dad06a.tar.xz |
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>
-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__ |