Fix wrongfully call to initCache() according to stefanrueger's instructions.

This commit is contained in:
Jan Egil Ruud 2022-12-01 20:05:55 +01:00
parent f78e14ee96
commit dc64fb716f
1 changed files with 3 additions and 0 deletions

View File

@ -367,6 +367,9 @@ int avr_flush_cache(const PROGRAMMER *pgm, const AVRPART *p) {
AVRMEM *mem = mems[i].mem; AVRMEM *mem = mems[i].mem;
AVR_Cache *cp = mems[i].cp; AVR_Cache *cp = mems[i].cp;
if(!mem)
continue;
if(!cp->cont) // Ensure cache is initialised from now on if(!cp->cont) // Ensure cache is initialised from now on
if(initCache(cp, pgm, p) < 0) { if(initCache(cp, pgm, p) < 0) {
if(quell_progress) if(quell_progress)