From 6bd4f93f8c27044e6dd6244258b3c4082deda354 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Sun, 18 Nov 2012 03:13:17 -0800 Subject: [PATCH] pull out prefetch commands from isRead --- uncore/src/consts.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uncore/src/consts.scala b/uncore/src/consts.scala index 57390387..29be0acc 100644 --- a/uncore/src/consts.scala +++ b/uncore/src/consts.scala @@ -63,7 +63,8 @@ trait MemoryOpConstants { val M_XA_MAXU = Bits("b1111", 4); def isAMO(cmd: Bits) = cmd(3) - def isRead(cmd: Bits) = cmd === M_XRD || cmd === M_PFR || cmd === M_PFW || isAMO(cmd) + def isPrefetch(cmd: Bits) = cmd === M_PFR || cmd === M_PFW + def isRead(cmd: Bits) = cmd === M_XRD || isAMO(cmd) def isWrite(cmd: Bits) = cmd === M_XWR || isAMO(cmd) }