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

@@ -15,10 +15,11 @@
struct target;
#define MIPSM4K_COMMON_MAGIC 0xB321B321
#define MIPSM4K_COMMON_MAGIC 0xB321B321U
struct mips_m4k_common {
uint32_t common_magic;
unsigned int common_magic;
bool is_pic32mx;
struct mips32_common mips32;
};