On Fri, Jul 8, 2011 at 2:05 PM, Mahr, Stefan <[email protected]>wrote:
> > Where are those functions defined and how do they know what the target > endianness is? > > They doesn't know the target endianness, but host endianness. > > > > It sounds a little strange to do the swapping at this low level. > > You need swapping when reading and comparing debug registers or send code > to MIPS CPU. > > But there are other times when swapping is not the right thing to do, such as reading/writing arbitrary memory blocks, right? So I'd say the swapping belongs to the higher levels that know if the data is to be interpreted or not. Otherwise we'll just be swapping back and forth needlessly. /Andreas
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
