From: Andreas Hansson Date: Mon, 19 Aug 2013 07:52:24 +0000 (-0400) Subject: cpu: Fix a bug in the O3 CPU introduced by the cache line patch X-Git-Tag: stable_2014_02_15~181 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b2effd9e2d30c5e2a72bfe78214cd88689d89d9;p=gem5.git 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. --- diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh index 0445de921..f6e46cc26 100644 --- a/src/cpu/o3/fetch_impl.hh +++ b/src/cpu/o3/fetch_impl.hh @@ -344,6 +344,11 @@ DefaultFetch::resetStage() wroteToTimeBuffer = false; _status = Inactive; + + for (ThreadID tid = 0; tid < numThreads; tid++) { + cacheDataPC[tid] = 0; + cacheDataValid[tid] = false; + } } template