aboutsummaryrefslogtreecommitdiff
path: root/src/target/xscale.h
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2022-05-26 10:01:45 +0200
committerTomas Vanek <vanekt@fbl.cz>2022-08-14 12:02:38 +0000
commit8f299c6aec299f7231005a1ba7526ed2758414c3 (patch)
tree4e4906246e6fa6d8aec3eca7514bed54e7fa9df0 /src/target/xscale.h
parentb76a7a82b20fcf265a7b211e6ef97b759a8cb714 (diff)
downloadriscv-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/xscale.h')
-rw-r--r--src/target/xscale.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/xscale.h b/src/target/xscale.h
index 0087b8a..36a69bc 100644
--- a/src/target/xscale.h
+++ b/src/target/xscale.h
@@ -15,7 +15,7 @@
#include "armv4_5_mmu.h"
#include "trace.h"
-#define XSCALE_COMMON_MAGIC 0x58534341
+#define XSCALE_COMMON_MAGIC 0x58534341U
/* These four JTAG instructions are architecturally defined.
* Lengths are core-specific; originally 5 bits, later 7.
@@ -71,11 +71,11 @@ struct xscale_trace {
};
struct xscale_common {
+ unsigned int common_magic;
+
/* armv4/5 common stuff */
struct arm arm;
- int common_magic;
-
/* XScale registers (CP15, DBG) */
struct reg_cache *reg_cache;