From 5b4653b621b6cdc14d2ecfcec6d5df45729ce4f2 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Tue, 17 Mar 2015 05:08:19 -0700 Subject: [PATCH] fix rocc exception/s bit --- rocket/src/main/scala/ctrl.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocket/src/main/scala/ctrl.scala b/rocket/src/main/scala/ctrl.scala index e118b6cc..16ce5956 100644 --- a/rocket/src/main/scala/ctrl.scala +++ b/rocket/src/main/scala/ctrl.scala @@ -667,6 +667,6 @@ class Control extends CoreModule io.dmem.sret := wb_xcpt // obviously not an sret, but sufficient io.rocc.cmd.valid := wb_rocc_val - io.rocc.exception := wb_xcpt && io.dpath.status.xs != 0 - io.rocc.s := io.dpath.status.prv != 0 // should we just pass all of mstatus? + io.rocc.exception := wb_xcpt && io.dpath.status.xs.orR + io.rocc.s := io.dpath.status.prv.orR // should we just pass all of mstatus? }