[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/3] PPC: Allow little-endian user mode.

From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH 2/3] PPC: Allow little-endian user mode.
Date: Thu, 08 May 2014 10:55:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130910 Thunderbird/17.0.9

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]