DataCache.withInternalLrSc reserved clearing fix
This commit is contained in:
parent
34e5cafb75
commit
f46ad43f39
|
@ -864,8 +864,8 @@ class DataCache(val p : DataCacheConfig, mmuParameter : MemoryTranslatorBusParam
|
|||
|
||||
val lrSc = withInternalLrSc generate new Area{
|
||||
val reserved = RegInit(False)
|
||||
when(io.cpu.writeBack.isValid && !io.cpu.writeBack.isStuck && request.isLrsc){
|
||||
reserved := !request.wr
|
||||
when(io.cpu.writeBack.isValid && !io.cpu.writeBack.isStuck && request.wr){
|
||||
reserved := False
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1167,4 +1167,4 @@ class DataCache(val p : DataCacheConfig, mmuParameter : MemoryTranslatorBusParam
|
|||
s1.invalidations := RegNextWhen((input.valid && input.enable && input.address(lineRange) === s0.input.address(lineRange)) ? wayHits | 0, s0.input.ready)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue