]> git.sur5r.net Git - openocd/blobdiff - src/target/mips32.h
mips32: use 'unsigned int' for CPU register indices
[openocd] / src / target / mips32.h
index 951b2ed72659c1bfb2b2be518d71c11c62fee094..bfd7facb1dd59d3326a2fa3f45441a6ba26abee6 100644 (file)
@@ -100,8 +100,8 @@ struct mips32_common {
        struct mips32_comparator *data_break_list;
 
        /* register cache to processor synchronization */
-       int (*read_core_reg)(struct target *target, int num);
-       int (*write_core_reg)(struct target *target, int num);
+       int (*read_core_reg)(struct target *target, unsigned int num);
+       int (*write_core_reg)(struct target *target, unsigned int num);
 };
 
 static inline struct mips32_common *
@@ -203,7 +203,7 @@ struct mips32_algorithm {
 #define MIPS32_SYNCI_STEP      0x1     /* reg num od address step size to be used with synci instruction */
 
 /**
- * Cache operations definietions
+ * Cache operations definitions
  * Operation field is 5 bits long :
  * 1) bits 1..0 hold cache type
  * 2) bits 4..2 hold operation code