From 0e41f063bef9895e5f0e2bc1a862c27ea249a3df Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 6 Sep 2020 23:20:17 -0700 Subject: [PATCH] arm: Replicate the PageBytes constant in the ArmSystem class. When isa_traits.hh hopefully goes away in the not too distant future, this constant will need somewhere to live so ARM components can find it. There are valid arguments that this should not be a constant in the first place, but that's outside the scope of this change. Change-Id: Ic5bd046dc1cc196b3cf6b6c36878fdbf5eb4c0bf Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34170 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- src/arch/arm/system.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/arm/system.hh b/src/arch/arm/system.hh index cffc23586..e76245ea4 100644 --- a/src/arch/arm/system.hh +++ b/src/arch/arm/system.hh @@ -137,6 +137,9 @@ class ArmSystem : public System ArmSemihosting *const semihosting; public: + static constexpr Addr PageBytes = ArmISA::PageBytes; + static constexpr Addr PageShift = ArmISA::PageShift; + typedef ArmSystemParams Params; const Params * params() const -- 2.30.2