1
0

fix hit logic for amos

This commit is contained in:
Henry Cook 2012-03-12 10:38:37 -07:00
parent 6229a33dc4
commit cbf7b13341

View File

@ -147,8 +147,8 @@ trait FourStateCoherence extends CoherencePolicy {
def isHit ( cmd: Bits, state: UFix): Bool = { def isHit ( cmd: Bits, state: UFix): Bool = {
val (read, write) = cpuCmdToRW(cmd) val (read, write) = cpuCmdToRW(cmd)
((read && ( state === tileShared || state === tileExclusiveClean || state === tileExclusiveDirty)) || Mux(write, (state === tileExclusiveClean || state === tileExclusiveDirty),
(write && (state === tileExclusiveClean || state === tileExclusiveDirty))) (state === tileShared || state === tileExclusiveClean || state === tileExclusiveDirty))
} }
//TODO: do we need isPresent() for determining that a line needs to be //TODO: do we need isPresent() for determining that a line needs to be