I'm running openocd on EP9307(arm925t) CPU, as a HOST.
and target is EP9307 and ARM926t with EP9307 GPIO.

revision 1183 cause seg fault.
The problem is, cmd_queue_alloc returns unaligned pointer.
but it is used as a pointer to structure.

This patch fix it. and it is working.
Index: src/jtag/jtag.c
===================================================================
--- src/jtag/jtag.c     (revision 1183)
+++ src/jtag/jtag.c     (working copy)
@@ -378,6 +378,8 @@
        int offset;
        u8 *t;
 
+       /* align to 4 byte boundary */
+       size = ((size+3)/4)*4;
        if (*p_page)
        {
                while ((*p_page)->next)
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to