On Tuesday 09 February 2010, Øyvind Harboe wrote:
> 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);

Seems fair to me.


> 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...

Agreed:  the JTAG layer should not be involved with any
byte order conversions.

That's worth capturing in doxygen descriptions...

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to