cortex_a: drop the command 'cache auto'
commitcaabdd4a6627a86be43cd91e09f127173eb9e692
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 4 May 2024 18:09:51 +0000 (4 20:09 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 11 May 2024 11:54:40 +0000 (11 11:54 +0000)
tree187b42c9bb47a971c3943c431f194565e0f26f7c
parentdbef02789fb1f30ae77020754b1468549fd16510
cortex_a: drop the command 'cache auto'

The command 'cache auto' was introduced with commit cd440bd32a12
("add armv7a_cache handlers") in 2015 to allow disabling the cache
handling done automatically by OpenOCD.
This was probably a way to test the cache handling when there were
still the two independent accesses for APB-AP CPU debug and for
AHB-AP memory bus.

The handling of cache for cortex_a is robust and there is no more
reason to disable it.
The command 'cache auto' is not used in any upstream script.
On target aarch64 this command has never been introduced as the
cache is always handled automatically by OpenOCD.

Drop the command 'cache auto' and add it in the deprecated list.
Drop the flag 'auto_cache_enabled' by considering it as true.
Rename the function 'armv7a_cache_auto_flush_all_data()' as
'armv7a_cache_flush_all_data()' and, while there, fix the error
propagation in SMP case.

Change-Id: I0399f1081b08c4929e0795b76f4a686630f41d56
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8230
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/target/armv7a.c
src/target/armv7a.h
src/target/armv7a_cache.c
src/target/armv7a_cache.h
src/target/cortex_a.c
src/target/startup.tcl