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
This commit is contained in:
Antonio Borneo
2025-04-19 17:05:16 +02:00
parent d71ed4f3bc
commit 06c827757b
3 changed files with 13 additions and 15 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ struct armv7a_cache_common {
int i_cache_enabled;
int d_u_cache_enabled;
/* outer unified cache if some */
void *outer_cache;
struct armv7a_l2x_cache *outer_cache;
int (*flush_all_data_cache)(struct target *target);
};