]> git.sur5r.net Git - openocd/commitdiff
armv4_5: Continue the change from uint32_t to uint8_t[4] for regs
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 18 Jan 2015 11:08:05 +0000 (12:08 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Fri, 30 Jan 2015 08:57:55 +0000 (08:57 +0000)
Also remove an unrelated no-op cast.

Change-Id: Ibeb6c72e5b0b0347abb568947a05a179661faf2d
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/2473
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Tested-by: jenkins
src/target/arm.h
src/target/armv4_5.c

index 88b5902ea8d7c9ebcd907be5b3d1dd25f00c3fd5..b93952c0eef908f6e0726f4012eede2fdb58f03e 100644 (file)
@@ -202,7 +202,7 @@ struct arm_reg {
        enum arm_mode mode;
        struct target *target;
        struct arm *arm;
-       uint32_t value;
+       uint8_t value[4];
 };
 
 struct reg_cache *arm_build_reg_cache(struct target *target, struct arm *arm);
index dc77af2b158830b628a78ba39a462d684551698d..69674cbf1e319be71e24fefff161c4f32f2d86c2 100644 (file)
@@ -605,10 +605,10 @@ struct reg_cache *arm_build_reg_cache(struct target *target, struct arm *arm)
                reg_arch_info[i].target = target;
                reg_arch_info[i].arm = arm;
 
-               reg_list[i].name = (char *) arm_core_regs[i].name;
+               reg_list[i].name = arm_core_regs[i].name;
                reg_list[i].number = arm_core_regs[i].gdb_index;
                reg_list[i].size = 32;
-               reg_list[i].value = &reg_arch_info[i].value;
+               reg_list[i].value = reg_arch_info[i].value;
                reg_list[i].type = &arm_reg_type;
                reg_list[i].arch_info = &reg_arch_info[i];
                reg_list[i].exist = true;