This is an automated email from Gerrit. Jason Moehlman ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/996
-- gerrit commit 67f19a9baa5449ca7513c303cfe6d279ec0707ad Author: Jason Moehlman <[email protected]> Date: Mon Nov 19 18:33:34 2012 -0500 arm: Mis-aligned data issue fix. Fixes issue with big endian hosts and mis-aligned data on some targets. Fixes segfault with some arm targets. Signed-off-by: Jason Moehlman <[email protected]> Change-Id: I6bc6fb1b3c3565b256674b9ef43ed2afd14f5178 diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 65d29f0..2566d49 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -272,6 +272,7 @@ int mem_ap_write_buf_u32(struct adiv5_dap *dap, const uint8_t *buffer, int count int wcount, blocksize, writecount, errorcount = 0, retval = ERROR_OK; uint32_t adr = address; const uint8_t *pBuffer = buffer; + uint32_t tmp; count >>= 2; wcount = count; @@ -307,8 +308,8 @@ int mem_ap_write_buf_u32(struct adiv5_dap *dap, const uint8_t *buffer, int count return retval; for (writecount = 0; writecount < blocksize; writecount++) { - retval = dap_queue_ap_write(dap, AP_REG_DRW, - *(uint32_t *) ((void *) (buffer + 4 * writecount))); + tmp = buf_get_u32(buffer, 0, 32); + retval = dap_queue_ap_write(dap, AP_REG_DRW, tmp); if (retval != ERROR_OK) break; } -- ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
