diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2022-05-26 10:01:45 +0200 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2022-08-14 12:02:38 +0000 |
commit | 8f299c6aec299f7231005a1ba7526ed2758414c3 (patch) | |
tree | 4e4906246e6fa6d8aec3eca7514bed54e7fa9df0 /src/target/mips_m4k.h | |
parent | b76a7a82b20fcf265a7b211e6ef97b759a8cb714 (diff) | |
download | riscv-openocd-8f299c6aec299f7231005a1ba7526ed2758414c3.zip riscv-openocd-8f299c6aec299f7231005a1ba7526ed2758414c3.tar.gz riscv-openocd-8f299c6aec299f7231005a1ba7526ed2758414c3.tar.bz2 |
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>
Diffstat (limited to 'src/target/mips_m4k.h')
-rw-r--r-- | src/target/mips_m4k.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/target/mips_m4k.h b/src/target/mips_m4k.h index ae4a0ff..b563ea5 100644 --- a/src/target/mips_m4k.h +++ b/src/target/mips_m4k.h @@ -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; }; |