From 762f2551a70ba40ea8f527522d48551ecc8994a8 Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Tue, 6 Mar 2012 15:54:19 -0800 Subject: [PATCH] newTransactionOnMiss() --- uncore/coherence.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uncore/coherence.scala b/uncore/coherence.scala index 51505882..5a52ac44 100644 --- a/uncore/coherence.scala +++ b/uncore/coherence.scala @@ -155,6 +155,10 @@ trait FourStateCoherence extends CoherencePolicy { val (read, write) = cpuCmdToRW(cmd) Mux(write, tileExclusiveDirty, state) } + def newTransactionOnMiss(cmd: Bits, state: UFix): UFix = { + val (read, write) = cpuCmdToRW(cmd) + Mux(write, X_INIT_READ_EXCLUSIVE, X_INIT_READ_SHARED) + } def newStateOnTransactionRep(incoming: TransactionReply, outstanding: TransactionInit): UFix = { MuxLookup(incoming.t_type, tileInvalid, Array( X_REP_READ_SHARED -> tileShared,