From 3e238adc67e6e38a23c9cdda39f1ed2709fa767f Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 25 May 2016 20:37:48 -0700 Subject: [PATCH] rtc: fix acquire message type check --- uncore/src/main/scala/rtc.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uncore/src/main/scala/rtc.scala b/uncore/src/main/scala/rtc.scala index 8c05d418..d2940578 100644 --- a/uncore/src/main/scala/rtc.scala +++ b/uncore/src/main/scala/rtc.scala @@ -26,8 +26,8 @@ class RTC(nHarts: Int)(implicit val p: Parameters) extends Module val addr = full_addr(log2Up(size)-1,log2Up(w/8)) val rdata = regs(addr) val wdata = acq.bits.data - val read = acq.bits.a_type === Acquire.getType - val write = acq.bits.a_type === Acquire.putType + val read = acq.bits.isBuiltInType(Acquire.getType) + val write = acq.bits.isBuiltInType(Acquire.putType) val wmask = acq.bits.full_wmask() assert(!acq.valid || read || write, "unsupported RTC operation")