From: Tom Musta <tommusta@gmail.com>
To: "Peter Maydell" <peter.maydell@linaro.org>,
"\"Doug Kwan (關振德)\"" <dougkwan@google.com>
Cc: Riku Voipio <riku.voipio@iki.fi>,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH 3/3] configure: Add new target ppc64el-linux-user
Date: Thu, 08 May 2014 10:39:55 -0500 [thread overview]
Message-ID: <536BA54B.3080600@gmail.com> (raw)
In-Reply-To: <CAFEAcA8E3Kr1crHCNnC7LEpUFWZnKk_8Mi36Uo9ksK=40hEQog@mail.gmail.com>
On 5/8/2014 10:25 AM, Peter Maydell wrote:
> On 8 May 2014 16:19, Doug Kwan (關振德) <dougkwan@google.com> wrote:
>> On Thu, May 8, 2014 at 7:41 AM, Tom Musta <tommusta@gmail.com> wrote:
>>> We have TCG targets for PowerPC that are bi-endian. It would be much nicer
>>> to have to split
>>> user mode by endianness. If the user loads a BE ELF, then run in BE mode
>>> .... a LE ELF,
>>> then run in LE mode.
>>>
>>> I know there is much hand waving in that statement ... but maybe we can do
>>> better? ("we" includes
>>> "me" in that statement ... since I offered to Doug to help out with this).
>
>> To do this, we need to fix the elf load.
>
> That is far from the only thing that would need changing.
> I really don't recommend trying to do something different
> from the norm here.
>
> Isn't LE PPC a different ABI anyway? (ELFv2).
>
> thanks
> -- PMM
>
It is true that the new LE distros are basing on ELFv2. But ELFv2 ABI is not
limited to LE. I chatted with Uli on this very topic and he confirmed that
endianness is specified in the e_ident field of the header.
I believe we have thoroughly demonstrated that the (softmmu) TCG code works
correctly in both settings of MSR[LE], without making compile time decisions.
It doesn't seem like we are that far off ... maybe I don't see the problem
yet.
next prev parent reply other threads:[~2014-05-08 15:40 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 8:26 [Qemu-devel] [PATCH 0/3] Adding new user mode target ppc64el-linux-user Doug Kwan
2014-05-08 8:26 ` [Qemu-devel] [PATCH 1/3] linux-user: Handle ELFv2 PPC64 binaries in user mode Doug Kwan
2014-05-08 8:36 ` Alexander Graf
2014-05-08 8:43 ` Doug Kwan (關振德)
2014-05-08 8:45 ` Alexander Graf
2014-05-08 13:30 ` Ulrich Weigand
2014-05-08 8:26 ` [Qemu-devel] [PATCH 2/3] PPC: Allow little-endian " Doug Kwan
2014-05-08 8:39 ` Alexander Graf
2014-05-08 8:49 ` Doug Kwan (關振德)
2014-05-08 8:55 ` Alexander Graf
2014-05-08 9:05 ` Doug Kwan (關振德)
2014-05-08 9:11 ` Alexander Graf
2014-05-08 9:24 ` Doug Kwan (關振德)
2014-05-08 12:39 ` Peter Maydell
2014-05-08 12:44 ` Alexander Graf
2014-05-08 8:26 ` [Qemu-devel] [PATCH 3/3] configure: Add new target ppc64el-linux-user Doug Kwan
2014-05-08 8:41 ` Alexander Graf
2014-05-08 8:46 ` Doug Kwan (關振德)
2014-05-08 8:56 ` Alexander Graf
2014-05-08 9:09 ` Doug Kwan (關振德)
2014-05-08 12:18 ` Andreas Färber
2014-05-08 12:28 ` Peter Maydell
2014-05-08 12:45 ` Alexander Graf
2014-05-08 15:57 ` Doug Kwan (關振德)
2014-05-08 14:41 ` Tom Musta
2014-05-08 15:19 ` Doug Kwan (關振德)
2014-05-08 15:25 ` Peter Maydell
2014-05-08 15:32 ` Doug Kwan (關振德)
2014-05-08 15:41 ` Peter Maydell
2014-05-08 15:51 ` Doug Kwan (關振德)
2014-05-08 15:56 ` Peter Maydell
2014-05-08 15:39 ` Tom Musta [this message]
2014-05-08 15:43 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=536BA54B.3080600@gmail.com \
--to=tommusta@gmail.com \
--cc=agraf@suse.de \
--cc=dougkwan@google.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=riku.voipio@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).