changeset 2e5d41fbc4a5 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2e5d41fbc4a5
description:
        Mem: Put prefetcher notify call before packet is deleted.

diffstat:

 src/mem/cache/cache_impl.hh |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r 5f3fe76e7950 -r 2e5d41fbc4a5 src/mem/cache/cache_impl.hh
--- a/src/mem/cache/cache_impl.hh       Fri Aug 19 15:08:08 2011 -0500
+++ b/src/mem/cache/cache_impl.hh       Fri Aug 19 15:08:08 2011 -0500
@@ -514,18 +514,18 @@
     bool needsResponse = pkt->needsResponse();
 
     if (satisfied) {
+        if (prefetcher && (prefetchOnAccess || (blk && blk->wasPrefetched()))) 
{
+            if (blk)
+                blk->status &= ~BlkHWPrefetched;
+            next_pf_time = prefetcher->notify(pkt, time);
+        }
+
         if (needsResponse) {
             pkt->makeTimingResponse();
             cpuSidePort->respond(pkt, curTick()+lat);
         } else {
             delete pkt;
         }
-
-        if (prefetcher && (prefetchOnAccess || (blk && blk->wasPrefetched()))) 
{
-            if (blk)
-                blk->status &= ~BlkHWPrefetched;
-            next_pf_time = prefetcher->notify(pkt, time);
-        }
     } else {
         // miss
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to