]> git.sur5r.net Git - openocd/blobdiff - src/target/mips32.h
mips32: use 'unsigned int' for CPU register indices
[openocd] / src / target / mips32.h
index 4f44384a38088c729d7bc361fdc2021c963265ea..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 *