From 1c8ce99ac3a19bb93df13aa6b0b0c976bfe56e89 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 28 Oct 2019 19:55:15 -0700 Subject: dev: Get PageBytes from the system in the ARM generic timer. These will ultimately by ArmISA::PageBytes, but this is more consistent with other devices which don't know what ISA they're part of. Change-Id: Iac13d5010564512207ed009377a771ee5949eff3 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22269 Tested-by: kokoro Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/dev/arm/generic_timer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dev/arm/generic_timer.cc b/src/dev/arm/generic_timer.cc index 396926f40..430b4ebfa 100644 --- a/src/dev/arm/generic_timer.cc +++ b/src/dev/arm/generic_timer.cc @@ -524,8 +524,9 @@ GenericTimerISA::readMiscReg(int reg) GenericTimerMem::GenericTimerMem(GenericTimerMemParams *p) : PioDevice(p), - ctrlRange(RangeSize(p->base, TheISA::PageBytes)), - timerRange(RangeSize(p->base + TheISA::PageBytes, TheISA::PageBytes)), + ctrlRange(RangeSize(p->base, sys->getPageBytes())), + timerRange(RangeSize(p->base + sys->getPageBytes(), + sys->getPageBytes())), addrRanges{ctrlRange, timerRange}, systemCounter(), physTimer(csprintf("%s.phys_timer0", name()), -- cgit v1.2.3