On Fri, Jul 8, 2011 at 1:38 PM, Mahr, Stefan <[email protected]>wrote:

> > are you sure about this ?
> >
> > It seems to me that buffer[i] is directly filled by target, and I see
> > no reason that it is in the host endianess...
>
> Hi Drasko,
>
> Yes I'm sure. I tested it on my big endian host platform.
>
> I do not understand the code completely, but I think it's caused by the
> mips ejtag functions.
>
> Example:
> - mips_ejtag_drscan_32 uses uint32 for data
> - buf_set_u32 and buf_get_u32 make sure that data is in host endianness
>
>
Where are those functions defined and how do they know what the target
endianness is?

It sounds a little strange to do the swapping at this low level.

/Andreas
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to