forked from auracaster/openocd
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:
@@ -148,7 +148,7 @@ enum {
|
||||
PMCR,
|
||||
};
|
||||
|
||||
#define X86_32_COMMON_MAGIC 0x86328632
|
||||
#define X86_32_COMMON_MAGIC 0x86328632U
|
||||
|
||||
enum {
|
||||
/* memory read/write */
|
||||
@@ -200,7 +200,8 @@ struct swbp_mem_patch {
|
||||
#define NUM_PM_REGS 18 /* regs used in save/restore */
|
||||
|
||||
struct x86_32_common {
|
||||
uint32_t common_magic;
|
||||
unsigned int common_magic;
|
||||
|
||||
void *arch_info;
|
||||
enum x86_core_type core_type;
|
||||
struct reg_cache *cache;
|
||||
|
||||
Reference in New Issue
Block a user