1
0

Fix haltnot reporting (previously always returned 0)

This commit is contained in:
Andrew Waterman 2017-03-09 12:37:20 -08:00
parent 24a2278fc4
commit 33b6d48376

View File

@ -724,7 +724,7 @@ trait DebugModule extends Module with HasDebugModuleParameters with HasRegMap {
// This logic assumes only up to 128 components.
rdHaltnotStatus := Bits(0)
for (ii <- 0 until numHaltnotStatus) {
when (dbReq.addr === UInt(ii)) {
when (dbReq.addr(1, 0) === UInt(ii)) {
rdHaltnotStatus := haltnotStatus(ii)
}
}