Fix datacache initial flush
This commit is contained in:
parent
c5689e512c
commit
d7e9c726c3
|
@ -855,7 +855,7 @@ class DataCache(val p : DataCacheConfig, mmuParameter : MemoryTranslatorBusParam
|
||||||
io.cpu.execute.haltIt := True
|
io.cpu.execute.haltIt := True
|
||||||
when(!hold) {
|
when(!hold) {
|
||||||
counter := counter + 1
|
counter := counter + 1
|
||||||
when(io.cpu.flush.singleLine){
|
when(io.cpu.flush.valid && io.cpu.flush.singleLine){
|
||||||
counter.msb := True
|
counter.msb := True
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -869,7 +869,7 @@ class DataCache(val p : DataCacheConfig, mmuParameter : MemoryTranslatorBusParam
|
||||||
when(start){
|
when(start){
|
||||||
waitDone := True
|
waitDone := True
|
||||||
counter := 0
|
counter := 0
|
||||||
when(io.cpu.flush.singleLine){
|
when(io.cpu.flush.valid && io.cpu.flush.singleLine){
|
||||||
counter := U"0" @@ io.cpu.flush.lineId
|
counter := U"0" @@ io.cpu.flush.lineId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue