fastmodel: remove incorrect cntfrq update
The register cntfrq should be set to system counter frequency. However, the current fastmodel implementation accidentally set it to core frequency. This CL removes the wrong implementation, and real cntfrq setting is performed in the initState. Change-Id: I6c62822a4fbbcc0c499f79f6003dabb0c133f997 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40276 Reviewed-by: Gabe Black <gabe.black@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -66,19 +66,6 @@ class CortexA76 : public Iris::CPU<CortexA76TC>
|
||||
Base(p, scx::scx_get_iris_connection_interface()), _params(p)
|
||||
{}
|
||||
|
||||
void
|
||||
clockPeriodUpdated() override
|
||||
{
|
||||
Base::clockPeriodUpdated();
|
||||
|
||||
// FIXME(b/139447397): this is a workaround since CNTFRQ_EL0 should not
|
||||
// be modified after clock is changed in real hardwares. Remove or
|
||||
// modify this after a more reasonable solution is found.
|
||||
for (auto *tc : threadContexts) {
|
||||
tc->setMiscRegNoEffect(ArmISA::MISCREG_CNTFRQ_EL0, frequency());
|
||||
}
|
||||
}
|
||||
|
||||
void initState() override;
|
||||
|
||||
template <class T>
|
||||
|
||||
Reference in New Issue
Block a user