From 8f299c6aec299f7231005a1ba7526ed2758414c3 Mon Sep 17 00:00:00 2001 From: Tomas Vanek Date: Thu, 26 May 2022 10:01:45 +0200 Subject: target: consolidate existing target/algo common_magic Unify common_magic type to unsigned int Move common_magic to be the first member of the struct Add unsigned specifier to xxx_COMMON_MAGIC #defines Change-Id: If961d33232698529514ba3720e04418baf6dc6fe Signed-off-by: Tomas Vanek Reviewed-on: https://review.openocd.org/c/openocd/+/6996 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/target/arm926ejs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/target/arm926ejs.h') diff --git a/src/target/arm926ejs.h b/src/target/arm926ejs.h index c652a3b..479128e 100644 --- a/src/target/arm926ejs.h +++ b/src/target/arm926ejs.h @@ -11,11 +11,12 @@ #include "arm9tdmi.h" #include "armv4_5_mmu.h" -#define ARM926EJS_COMMON_MAGIC 0xa926a926 +#define ARM926EJS_COMMON_MAGIC 0xa926a926U struct arm926ejs_common { + unsigned int common_magic; + struct arm7_9_common arm7_9_common; - uint32_t common_magic; struct armv4_5_mmu_common armv4_5_mmu; int (*read_cp15)(struct target *target, uint32_t op1, uint32_t op2, uint32_t crn, uint32_t crm, uint32_t *value); -- cgit v1.1