Fix a bitwise operation that was accidentally a logical operation.
authorRon Dreslinski <rdreslin@umich.edu>
Mon, 9 Oct 2006 21:18:34 +0000 (17:18 -0400)
committerRon Dreslinski <rdreslin@umich.edu>
Mon, 9 Oct 2006 21:18:34 +0000 (17:18 -0400)
--HG--
extra : convert_revision : 30f64bcb6bea47fd8cd6d77b0df17eff04dbbad0

src/mem/cache/cache_impl.hh

index 8d028e97f775f891e53bffed3152ec35ab7f969e..7764b97c16ee7f103923e08c7e31705dae724057 100644 (file)
@@ -73,7 +73,7 @@ doTimingAccess(Packet *pkt, CachePort *cachePort, bool isCpuSide)
             handleResponse(pkt);
         else {
             //Check if we should do the snoop
-            if (pkt->flags && SNOOP_COMMIT)
+            if (pkt->flags & SNOOP_COMMIT)
                 snoop(pkt);
         }
     }