cpu: Fix a bug in the O3 CPU introduced by the cache line patch

This patch fixes a bug in the O3 fetch stage that was introduced when
the cache line size was moved to the system. By mistake, the
initialisation and resetting of the fetch stage was merged and put in
the constructor. The resetting is now re-added where it should be.
This commit is contained in:
Andreas Hansson 2013-08-19 03:52:24 -04:00
parent cf56619b0c
commit 9b2effd9e2

View file

@ -344,6 +344,11 @@ DefaultFetch<Impl>::resetStage()
wroteToTimeBuffer = false;
_status = Inactive;
for (ThreadID tid = 0; tid < numThreads; tid++) {
cacheDataPC[tid] = 0;
cacheDataValid[tid] = false;
}
}
template<class Impl>