DataCache.withInternalLrSc reserved clearing fix

This commit is contained in:
Dolu1990 2022-01-10 13:39:41 +01:00 committed by GitHub
parent 34e5cafb75
commit f46ad43f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
}