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 <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6996
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Tomas Vanek
2022-05-26 10:01:45 +02:00
parent b76a7a82b2
commit 8f299c6aec
23 changed files with 67 additions and 48 deletions

View File

@@ -19,7 +19,7 @@ enum {
ARM_CPSR = 16
};
#define ARMV7_COMMON_MAGIC 0x0A450999
#define ARMV7_COMMON_MAGIC 0x0A450999U
/* VA to PA translation operations opc2 values*/
#define V2PCWPR 0
@@ -87,8 +87,9 @@ struct armv7a_mmu_common {
};
struct armv7a_common {
unsigned int common_magic;
struct arm arm;
int common_magic;
struct reg_cache *core_cache;
/* Core Debug Unit */