On 05/08/2014 10:49 AM, Doug Kwan (關振德) wrote:
If we leave the target mode as big-endian, we need to teach the elfloader to handle binary of reversed endianness. I have looked into that possibility as well but find the current approach easier.

Please don't top post.

Ok, so if we really want to change the code to be able to handle !TARGET_WORDS_BIGENDIAN the whole notion of s->le_mode becomes flawed. Instead, it should get renamed into needs_swab or needs_byteswap or something along those lines. Then we can set it accordingly based on msr_le and target configuration.

For the mem_helper.c changes, could you please explain why you have to treat msr_le and needs_byteswap separately?


Thanks,

Alex


Reply via email to