dev-arm: GenericTimer, configurable base and low freqs
authorAdrian Herrera <adrian.herrera@arm.com>
Mon, 28 Oct 2019 20:28:51 +0000 (20:28 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 10 Dec 2019 13:12:10 +0000 (13:12 +0000)
commitacd11787c9a650115efe13076f9d8d24b6332bd5
treef49cee1c7ab0dc127118c61f78f7be6d7c91e7ec
parent7acd6a57c8876c3c5498595d239978b048d28b19
dev-arm: GenericTimer, configurable base and low freqs

Architecture states the system counter has a fixed base frequency
provided in the first entry of the frequency modes table. Optionally,
other lower frequencies may be specified in consecutive entries.

This patch adds configurable frequencies to the GenericTimer model.
The default base frequency is kept as the one that was previously
hardcoded for backwards compatibility.

The table is not recommended to be updated once the system is running.

Change-Id: Icba0b340a0eb1cbb47dfe7d7e03b547af4570c60
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22425
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/RealView.py
src/dev/arm/generic_timer.cc
src/dev/arm/generic_timer.hh