The prototype below is problematic.... I would like to have
seen buffer defined as "const void *" and added the requirement
that "buffer" should be aligned to match "size"....

int target_write_memory(struct target *target,
                uint32_t address, uint32_t size, uint32_t count, uint8_t 
*buffer);

I'm looking at arm11 memory writes when I ran into this.

The other confusing things is what this fn is supposed to do when
the target and host endian does not match.... My interpretation is
that it is that the data in the host memory is stored in the targets
endianess... seems to match the existing behavior...

-- 
Øyvind Harboe

Visit us at Embedded World, March 2nd-4th. IS2T's stand, HALL 10 - 118
http://www.zylin.com/events_embeddedworld.html

US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to