mem: clean up write buffer check in Cache::handleSnoop()
authorSteve Reinhardt <steve.reinhardt@amd.com>
Sat, 14 Mar 2015 13:51:07 +0000 (06:51 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Sat, 14 Mar 2015 13:51:07 +0000 (06:51 -0700)
commitccef61d1ccaea43cf44aa45bee272475f0b10405
treeaed47ac3d917a40ed6c126a419fd04508a37f836
parent7902e5778f4737bbb5844ceb2478663c143aebc9
mem: clean up write buffer check in Cache::handleSnoop()

The 'if (writebacks.size)' check was redundant, because
writeBuffer.findMatches() would return false if the
writebacks list was empty.

Also renamed 'mshr' to 'wb_entry' in this context since
we are pointing at a writebuffer entry and not an MSHR
(even though it's the same C++ class).
src/mem/cache/cache_impl.hh