fastmodel: fix cntfrq in A76
authorEarl Ou <shunhsingou@google.com>
Tue, 2 Feb 2021 09:31:15 +0000 (17:31 +0800)
committerEarl Ou <shunhsingou@google.com>
Thu, 4 Feb 2021 01:48:13 +0000 (01:48 +0000)
Change-Id: I7d1167e8b61d6768039c34fe1ee54560f7845dfa
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40355
Reviewed-by: Ahbong Chang <cwahbong@google.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/fastmodel/CortexA76/cortex_a76.cc

index 11e8c985c1392c636b46c1140a64b01e9463ade7..5da724b7f36a558cfd3bbbd2952346f2f0d02e7a 100644 (file)
@@ -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