summaryrefslogtreecommitdiff
path: root/src/arch/arm
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-05-23 13:46:54 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-05-23 13:46:54 +0100
commit6533f2000bcd6d01f59655491198950b4ebff80b (patch)
treeee2f1e7f88ac64e343fa127c5c70ca00ab6aba88 /src/arch/arm
parent2278fec1d1064ec1622098153b20a773fb688e78 (diff)
downloadgem5-6533f2000bcd6d01f59655491198950b4ebff80b.tar.xz
arm: Get rid of pointless have_generic_timer param
The ArmSystem class has a parameter to indicate whether it is configured to use the generic timer extension or not. This parameter doesn't affect any feature flags in the current implementation and is therefore completely unnecessary. In fact, we usually don't set it even if a system has a generic timer. If we ever need to check if there is a generic timer present, we should just request a pointer and check if it is non-null instead.
Diffstat (limited to 'src/arch/arm')
-rw-r--r--src/arch/arm/ArmSystem.py2
-rw-r--r--src/arch/arm/system.cc1
-rw-r--r--src/arch/arm/system.hh8
3 files changed, 0 insertions, 11 deletions
diff --git a/src/arch/arm/ArmSystem.py b/src/arch/arm/ArmSystem.py
index f3c2c8891..b9769da4b 100644
--- a/src/arch/arm/ArmSystem.py
+++ b/src/arch/arm/ArmSystem.py
@@ -58,8 +58,6 @@ class ArmSystem(System):
have_virtualization = Param.Bool(False,
"True if Virtualization Extensions are implemented")
have_lpae = Param.Bool(False, "True if LPAE is implemented")
- have_generic_timer = Param.Bool(False,
- "True if the Generic Timer extension is implemented")
highest_el_is_64 = Param.Bool(False,
"True if the register width of the highest implemented exception level "
"is 64 bits (ARMv8)")
diff --git a/src/arch/arm/system.cc b/src/arch/arm/system.cc
index a7db9ca1b..8e4e82571 100644
--- a/src/arch/arm/system.cc
+++ b/src/arch/arm/system.cc
@@ -57,7 +57,6 @@ ArmSystem::ArmSystem(Params *p)
: System(p), bootldr(NULL), _haveSecurity(p->have_security),
_haveLPAE(p->have_lpae),
_haveVirtualization(p->have_virtualization),
- _haveGenericTimer(p->have_generic_timer),
_genericTimer(nullptr),
_highestELIs64(p->highest_el_is_64),
_resetAddr64(p->reset_addr_64),
diff --git a/src/arch/arm/system.hh b/src/arch/arm/system.hh
index 3add01e61..0b652f76c 100644
--- a/src/arch/arm/system.hh
+++ b/src/arch/arm/system.hh
@@ -85,11 +85,6 @@ class ArmSystem : public System
const bool _haveVirtualization;
/**
- * True if this system implements the Generic Timer extension
- */
- const bool _haveGenericTimer;
-
- /**
* Pointer to the Generic Timer wrapper.
*/
GenericTimer *_genericTimer;
@@ -157,9 +152,6 @@ class ArmSystem : public System
*/
bool haveVirtualization() const { return _haveVirtualization; }
- /** Returns true if this system implements the Generic Timer extension. */
- bool haveGenericTimer() const { return _haveGenericTimer; }
-
/** Sets the pointer to the Generic Timer. */
void setGenericTimer(GenericTimer *generic_timer)
{