changeset c870b43d2ba6 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=c870b43d2ba6
description:
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.
diffstat:
src/cpu/o3/fetch_impl.hh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 535e088955ca -r c870b43d2ba6 src/cpu/o3/fetch_impl.hh
--- a/src/cpu/o3/fetch_impl.hh Tue Sep 09 04:36:33 2014 -0400
+++ b/src/cpu/o3/fetch_impl.hh Tue Sep 09 04:36:34 2014 -0400
@@ -419,7 +419,7 @@
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 @@
wroteToTimeBuffer = false;
- for (ThreadID i = 0; i < Impl::MaxThreads; ++i) {
+ for (ThreadID i = 0; i < numThreads; ++i) {
issuePipelinedIfetch[i] = false;
}
@@ -927,7 +927,7 @@
}
// 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);
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev