qemu-ppc
[Top][All Lists]
Advanced

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

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


From: 關振德
Subject: Re: [Qemu-ppc] [PATCH 2/3] PPC: Allow little-endian user mode.
Date: Thu, 8 May 2014 01:49:32 -0700

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.


On Thu, May 8, 2014 at 1:39 AM, Alexander Graf <address@hidden> wrote:
On 05/08/2014 10:26 AM, Doug Kwan wrote:
This all running PPC64 little-endian in user mode if target is configured
that way.  In PPC64 LE user mode we set MSR.LE during initialization.
Byteswapping logic is reversed also when QEMU is running in that mode.

Signed-off-by: Doug Kwan <address@hidden>

I can't say I'm a huge fan of this patch. It allows for really tricky subtile mistakes to happen. Can't we leave the target mode configured on big endian?


Alex



reply via email to

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