1
0

secondary miss bug

This commit is contained in:
Henry Cook 2015-03-05 14:40:31 -08:00
parent 8e41fcf6fc
commit df79e7ff8d

View File

@ -60,9 +60,7 @@ trait HasClientSideCoherencePolicy {
first_cmd: UInt, first_cmd: UInt,
second_cmd: UInt, second_cmd: UInt,
meta: ClientMetadata): Bool = { meta: ClientMetadata): Bool = {
isWriteIntent(second_cmd) && isWriteIntent(second_cmd) && !isWriteIntent(first_cmd)
!isWriteIntent(first_cmd) ||
(getAcquireType(first_cmd, meta) != getAcquireType(second_cmd, meta))
} }
//TODO: Assumes all cache ctrl ops writeback dirty data, and //TODO: Assumes all cache ctrl ops writeback dirty data, and
// doesn't issue transaction when e.g. downgrading Exclusive to Shared: // doesn't issue transaction when e.g. downgrading Exclusive to Shared: