armv7a: fix handling of inner caches
ARMv7 architecture allows up to 7 cache levels that are architecturally visible, as opposed to "system caches", which are outside of the domain defined by ARMv7 and require separate management. This patch enables detection and identification of caches at all levels. It also implements a new "flush-all" function that cleans & invalidates all cache levels to the "Point of Coherence". Change-Id: Ib77115d6044d39845907941c6f031e208f6e0aa5 Signed-off-by: Matthias Welwarsky <matthias@welwarsky.de> Reviewed-on: http://openocd.zylin.com/3024 Reviewed-by: Paul Fertser <fercerpav@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Paul Fertser
parent
3a292a1f34
commit
8704e53665
@@ -30,4 +30,9 @@ int armv7a_cache_auto_flush_all_data(struct target *target);
|
||||
|
||||
extern const struct command_registration arm7a_cache_command_handlers[];
|
||||
|
||||
/* CLIDR cache types */
|
||||
#define CACHE_LEVEL_HAS_UNIFIED_CACHE 0x4
|
||||
#define CACHE_LEVEL_HAS_D_CACHE 0x2
|
||||
#define CACHE_LEVEL_HAS_I_CACHE 0x1
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user