armv7a: forward error value in armv7a_cache_auto_flush_all_data
if armv7a_l1_d_cache_clean_inval_all will fail, error value is never forwarded. So make sure we do it from now. Change-Id: I02acfaa938ec09f58df77191d13d8f4bb3308720 Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-on: http://openocd.zylin.com/4384 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>riscv-compliance-dev
parent
6d390e1b2a
commit
e195b0bc81
|
@ -148,10 +148,11 @@ int armv7a_cache_auto_flush_all_data(struct target *target)
|
||||||
} else
|
} else
|
||||||
retval = armv7a_l1_d_cache_clean_inval_all(target);
|
retval = armv7a_l1_d_cache_clean_inval_all(target);
|
||||||
|
|
||||||
/* do outer cache flushing after inner caches have been flushed */
|
if (retval != ERROR_OK)
|
||||||
retval = arm7a_l2x_flush_all_data(target);
|
return retval;
|
||||||
|
|
||||||
return retval;
|
/* do outer cache flushing after inner caches have been flushed */
|
||||||
|
return arm7a_l2x_flush_all_data(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue