1
0

fix rocc exception/s bit

This commit is contained in:
Yunsup Lee 2015-03-17 05:08:19 -07:00
parent 66388be1ce
commit 5b4653b621

View File

@ -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?
}