summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:39 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:39 -0500
commit921490a0609a1f47fe7add6da551aa70b1707649 (patch)
tree7fb1fb2fd4753f98df819c9d3b482347288f2076 /src/mem
parent490dc30d9620891c54ddcd57c56adf092a71d79b (diff)
downloadgem5-921490a0609a1f47fe7add6da551aa70b1707649.tar.xz
sim: Fatal if a clocked object is set to have a clock of 0
This patch adds a check to the clocked object constructor to ensure it is not configured to have a clock period of 0.
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/cache/base.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc
index 262573663..d126906d0 100644
--- a/src/mem/cache/base.cc
+++ b/src/mem/cache/base.cc
@@ -81,10 +81,6 @@ BaseCache::BaseCache(const Params *p)
addrRanges(p->addr_ranges.begin(), p->addr_ranges.end()),
system(p->system)
{
- // ensure the clock is not running at an unreasonable clock speed
- if (clock == 1)
- panic("Cache %s has a cycle time of 1 tick. Specify a clock.\n",
- name());
}
void