This is an automated email from Gerrit.

Andreas Fritiofson (andreas.fritiof...@gmail.com) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/2473

-- gerrit

commit 34cb97cd10342bbdeb79676acdfea67fbc76796e
Author: Andreas Fritiofson <andreas.fritiof...@gmail.com>
Date:   Sun Jan 18 12:08:05 2015 +0100

    armv4_5: Continue the change from uint32_t to uint8_t[4] for regs
    
    Also remove an unrelated no-op cast.
    
    Change-Id: Ibeb6c72e5b0b0347abb568947a05a179661faf2d
    Signed-off-by: Andreas Fritiofson <andreas.fritiof...@gmail.com>

diff --git a/src/target/arm.h b/src/target/arm.h
index 88b5902..b93952c 100644
--- a/src/target/arm.h
+++ b/src/target/arm.h
@@ -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);
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index dc77af2..69674cb 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -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;

-- 

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to