From cd1bd7572aeb49f55ea9071a73ba1e322fb2487b Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Tue, 9 Sep 2014 04:36:34 -0400 Subject: cpu: Only iterate over possible threads on the o3 cpu Some places in O3 always iterated over "Impl::MaxThreads" even if a CPU had fewer threads. This removes a few of those instances. --- src/cpu/o3/fetch_impl.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cpu/o3/fetch_impl.hh') diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh index e20d2970a..fb933b8ca 100644 --- a/src/cpu/o3/fetch_impl.hh +++ b/src/cpu/o3/fetch_impl.hh @@ -419,7 +419,7 @@ template void DefaultFetch::drainResume() { - for (ThreadID i = 0; i < Impl::MaxThreads; ++i) + for (ThreadID i = 0; i < numThreads; ++i) stalls[i].drain = false; } @@ -887,7 +887,7 @@ DefaultFetch::tick() wroteToTimeBuffer = false; - for (ThreadID i = 0; i < Impl::MaxThreads; ++i) { + for (ThreadID i = 0; i < numThreads; ++i) { issuePipelinedIfetch[i] = false; } @@ -927,7 +927,7 @@ DefaultFetch::tick() } // Issue the next I-cache request if possible. - for (ThreadID i = 0; i < Impl::MaxThreads; ++i) { + for (ThreadID i = 0; i < numThreads; ++i) { if (issuePipelinedIfetch[i]) { pipelineIcacheAccesses(i); } -- cgit v1.2.3