1
0
Fork 0

Fix regression in groundtest DummyPTW

Initialize all fields in PTWResp for determinism, which should
prevent this sort of problem in the future.
This commit is contained in:
Andrew Waterman 2017-03-27 22:58:17 -07:00 committed by Andrew Waterman
parent 4215f480ef
commit db3ed12ce3
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class DummyPTW(n: Int)(implicit p: Parameters) extends CoreModule()(p) {
val s2_chosen = RegEnable(req_arb.io.chosen, req_arb.io.out.valid)
val s2_valid = Reg(next = req_arb.io.out.valid)
val s2_resp = Wire(new PTWResp)
val s2_resp = Wire(init = 0.U.asTypeOf(new PTWResp))
s2_resp.pte.ppn := s2_ppn
s2_resp.pte.reserved_for_software := UInt(0)
s2_resp.level := UInt(pgLevels-1)