]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
target: armv7a: use proper type for struct armv7a_cache_common::outer_cache
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 19 Apr 2025 15:05:16 +0000 (17:05 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 9 May 2025 12:09:34 +0000 (12:09 +0000)
commit06c827757b0c44bef5a15558a71ab666375cbb87
tree05442c3a9e980a735c2afc4518dcf2f85e83d605
parentd71ed4f3bc58f97ec99f265e55faa1fed7e793ff
target: armv7a: use proper type for struct armv7a_cache_common::outer_cache

The field 'outer_cache' is always initialized and used as a
pointer to 'struct armv7a_l2x_cache'.
There is no reason for using type 'void *' for it.

Change the type of 'outer_cache'.
Drop the useless cast while reading 'outer_cache'.

Change-Id: Iaea9d02e247da26e230f887c85fbf8e9d7be34d5
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8858
Tested-by: jenkins
src/target/armv7a.c
src/target/armv7a.h
src/target/armv7a_cache_l2x.c