Skip to content

Commit

Permalink
fix(vstart): fix vstart wrong update when other instruction handling …
Browse files Browse the repository at this point in the history
…interrupt (#3887)
  • Loading branch information
Tang-Haojin authored Nov 18, 2024
1 parent 45f3afd commit cc89a8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/xiangshan/backend/rob/Rob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ class RobImp(override val wrapper: Rob)(implicit p: Parameters, params: BackendP
vecExcpInfo.bits.vstart := exceptionDataRead.bits.vstart
}

io.csr.vstart.valid := RegNext(Mux(exceptionHappen, exceptionDataRead.bits.vstartEn, resetVstart))
io.csr.vstart.bits := RegNext(Mux(exceptionHappen, exceptionDataRead.bits.vstart, 0.U))
io.csr.vstart.valid := RegNext(Mux(exceptionHappen && deqHasException, exceptionDataRead.bits.vstartEn, resetVstart))
io.csr.vstart.bits := RegNext(Mux(exceptionHappen && deqHasException, exceptionDataRead.bits.vstart, 0.U))

val vxsat = Wire(Valid(Bool()))
vxsat.valid := io.commits.isCommit && vxsat.bits
Expand Down

0 comments on commit cc89a8a

Please sign in to comment.