aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm946e.h
diff options
context:
space:
mode:
authorAlexander Osipenko <sipych@gmail.com>2012-06-08 23:18:04 +0400
committerFreddie Chopin <freddie.chopin@gmail.com>2012-08-01 21:18:37 +0000
commit63687807ccad246754e2fc32518bf27d1ab02d6b (patch)
treeb5db455696077d839e43d65eb3844a696592b4c3 /src/target/arm946e.h
parent9c9c06b8aee907c547e80b472be900d152dae490 (diff)
arm946e: cleanup C0.C cache type reg access
Cache type register C0.C is read-only, and display hard core configuration information. This information is unlikely be changed in runtime. - removed C0.C access when result is not used in arm946e_invalidate_dcache() - access C0.C only once per target, store result in cp15_cache_info field of target structure - fix cache index count calculation Change-Id: I12bc4c967fdf07f54d755f2f2f42406c0ababc1a Signed-off-by: Alexander Osipenko <sipych@gmail.com> Reviewed-on: http://openocd.zylin.com/693 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/target/arm946e.h')
-rw-r--r--src/target/arm946e.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/arm946e.h b/src/target/arm946e.h
index 1837bad7..64750af1 100644
--- a/src/target/arm946e.h
+++ b/src/target/arm946e.h
@@ -35,6 +35,7 @@ struct arm946e_common {
struct arm7_9_common arm7_9_common;
int common_magic;
uint32_t cp15_control_reg;
+ uint32_t cp15_cache_info;
};
static inline struct arm946e_common *target_to_arm946(struct target *target)