From: Earl Ou Date: Tue, 2 Feb 2021 09:31:15 +0000 (+0800) Subject: fastmodel: fix cntfrq in A76 X-Git-Tag: develop-gem5-snapshot~148 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03fc457b8621bc1d08473046a6ece8064357123f;p=gem5.git fastmodel: fix cntfrq in A76 Change-Id: I7d1167e8b61d6768039c34fe1ee54560f7845dfa Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40355 Reviewed-by: Ahbong Chang Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc b/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc index 11e8c985c..5da724b7f 100644 --- a/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc +++ b/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc @@ -42,7 +42,7 @@ CortexA76::initState() for (auto *tc : threadContexts) tc->setMiscRegNoEffect(ArmISA::MISCREG_CNTFRQ_EL0, params().cntfrq); - evs_base_cpu->setSysCounterFrq(cluster->params().cntfrq); + evs_base_cpu->setSysCounterFrq(params().cntfrq); } void