Fix DataCache flush on the last line
This commit is contained in:
parent
8459d423b8
commit
5a6665e57f
|
@ -448,9 +448,9 @@ class DataCache(p : DataCacheConfig) extends Component{
|
||||||
tagsWriteCmd.address := mmuRsp.physicalAddress(lineRange)
|
tagsWriteCmd.address := mmuRsp.physicalAddress(lineRange)
|
||||||
tagsWriteCmd.way.setAll()
|
tagsWriteCmd.way.setAll()
|
||||||
tagsWriteCmd.data.valid := False
|
tagsWriteCmd.data.valid := False
|
||||||
|
io.cpu.writeBack.haltIt := True
|
||||||
when(mmuRsp.physicalAddress(lineRange) =/= wayLineCount - 1) {
|
when(mmuRsp.physicalAddress(lineRange) =/= wayLineCount - 1) {
|
||||||
mmuRsp.physicalAddress.getDrivingReg(lineRange) := mmuRsp.physicalAddress(lineRange) + 1
|
mmuRsp.physicalAddress.getDrivingReg(lineRange) := mmuRsp.physicalAddress(lineRange) + 1
|
||||||
io.cpu.writeBack.haltIt := True
|
|
||||||
} otherwise {
|
} otherwise {
|
||||||
valid := False
|
valid := False
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue