|
From: | 關振德 |
Subject: | Re: [Qemu-ppc] [PATCH 2/3] PPC: Allow little-endian user mode. |
Date: | Thu, 8 May 2014 02:05:04 -0700 |
On 05/08/2014 10:49 AM, Doug Kwan (關振德) wrote:Please don't top post.
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.
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
[Prev in Thread] | Current Thread | [Next in Thread] |