diff options
author | Adrian Herrera <adrian.herrera@arm.com> | 2019-10-28 19:38:06 +0000 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2019-12-10 13:12:10 +0000 |
commit | 7acd6a57c8876c3c5498595d239978b048d28b19 (patch) | |
tree | 4b549f23f7eb305e6e0666af7da851acc707aeba /src/dev/arm/generic_timer.hh | |
parent | 90e524ba193ab5e867a8098a814f8dbb31aeee26 (diff) | |
download | gem5-7acd6a57c8876c3c5498595d239978b048d28b19.tar.xz |
dev-arm: GenericTimer, freq as 32-bit value
The System Counter frequency is now a 32-bit value. This is consistent
with CNTFRQ and CNTFRQ_EL0 register sizes.
Change-Id: I39886a3767adbe9c58887b8b6d5f30ebc6035bcc
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22424
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/dev/arm/generic_timer.hh')
-rw-r--r-- | src/dev/arm/generic_timer.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dev/arm/generic_timer.hh b/src/dev/arm/generic_timer.hh index acd8b3960..9a7f162e7 100644 --- a/src/dev/arm/generic_timer.hh +++ b/src/dev/arm/generic_timer.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, 2017-2018 ARM Limited + * Copyright (c) 2013, 2015, 2017-2018, 2019 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall @@ -63,7 +63,7 @@ class SystemCounter : public Serializable { protected: /// Counter frequency (as specified by CNTFRQ). - uint64_t _freq; + uint32_t _freq; /// Cached copy of the counter period (inverse of the frequency). Tick _period; /// Tick when the counter was reset. @@ -86,7 +86,7 @@ class SystemCounter : public Serializable } /// Returns the counter frequency. - uint64_t freq() const { return _freq; } + uint32_t freq() const { return _freq; } /// Sets the counter frequency. /// @param freq frequency in Hz. void setFreq(uint32_t freq); |