Skip to content

Commit

Permalink
fix(trace): fix ftqoffset in commitInfo for fuse instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
wissygh committed Nov 25, 2024
1 parent e8b1646 commit ca3b3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/backend/rob/Rob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class RobImp(override val wrapper: Rob)(implicit p: Parameters, params: BackendP
// Instructions in multiple Ftq entries compressed to one RobEntry do not occur.
for (i <- 0 until CommitWidth) {
val lastOffset = (rawInfo(i).traceBlockInPipe.iretire - (1.U << rawInfo(i).traceBlockInPipe.ilastsize.asUInt).asUInt) + rawInfo(i).ftqOffset
commitInfo(i).ftqOffset := lastOffset
commitInfo(i).ftqOffset := Mux(CommitType.isFused(rawInfo(i).commitType), rawInfo(i).ftqOffset, lastOffset)
}

// data for debug
Expand Down

0 comments on commit ca3b3fc

Please sign in to comment.