diff options
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/o3/fetch_impl.hh | 6 |
1 files changed, 3 insertions, 3 deletions
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 <class Impl> void DefaultFetch<Impl>::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<Impl>::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<Impl>::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); } |