changeset fefce4388397 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=fefce4388397
description:
        Cache: Only invalidate a line in the cache when an uncacheable write is 
seen.

diffstat:

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

diffs (21 lines):

diff -r b423daedefe5 -r fefce4388397 src/mem/cache/cache_impl.hh
--- a/src/mem/cache/cache_impl.hh       Fri Jun 29 11:18:29 2012 -0400
+++ b/src/mem/cache/cache_impl.hh       Fri Jun 29 11:18:29 2012 -0400
@@ -275,7 +275,7 @@
     if (pkt->req->isUncacheable()) {
         if (pkt->req->isClearLL()) {
             tags->clearLocks();
-        } else {
+        } else if (pkt->isWrite()) {
            blk = tags->findBlock(pkt->getAddr());
            if (blk != NULL) {
                tags->invalidateBlk(blk);
@@ -439,7 +439,7 @@
     if (pkt->req->isUncacheable()) {
         if (pkt->req->isClearLL()) {
             tags->clearLocks();
-        } else {
+        } else if (pkt->isWrite()) {
             BlkType *blk = tags->findBlock(pkt->getAddr());
             if (blk != NULL) {
                 tags->invalidateBlk(blk);
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to