This is an automated email from Gerrit.

Andrey Smirnov ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/2208

-- gerrit

commit b794244fcae4cdfdaee5fcf5087a49cf89577d98
Author: Andrey Smirnov <[email protected]>
Date:   Wed May 14 07:10:25 2014 -0700

    cortex_a: Take endianness into account for BKPT_SOFT breakpoints
    
    Take endianness into account when inserting software breakpoints
    since, cortex_a target is also used by cortex_r and some MCUs of the
    architecture start in big-endian by default(e. g. TMS570)
    
    Change-Id: I7f0169a1def016d60fa7f9eecdcc27fae7f100b8
    Signed-off-by: Andrey Smirnov <[email protected]>

diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index 7d58ab3..2ed178b 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -1398,9 +1398,9 @@ static int cortex_a_set_breakpoint(struct target *target,
        } else if (breakpoint->type == BKPT_SOFT) {
                uint8_t code[4];
                if (breakpoint->length == 2)
-                       buf_set_u32(code, 0, 32, ARMV5_T_BKPT(0x11));
+                       target_buffer_set_u32(target, code, ARMV5_T_BKPT(0x11));
                else
-                       buf_set_u32(code, 0, 32, ARMV5_BKPT(0x11));
+                       target_buffer_set_u32(target, code, ARMV5_BKPT(0x11));
                retval = target_read_memory(target,
                                breakpoint->address & 0xFFFFFFFE,
                                breakpoint->length, 1,

-- 

------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to