qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 04/11] linux-user: arm: set CPSR.E correctly


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v3 04/11] linux-user: arm: set CPSR.E correctly for BE8 mode
Date: Wed, 24 Jun 2015 11:48:02 +0100

On 24 June 2015 at 11:34, Paolo Bonzini <address@hidden> wrote:
>
>
> On 24/06/2015 12:21, Peter Maydell wrote:
>> > I think signal_cpsr_e is exactly what you want for AArch32.  It sets
>> > CPSR.E in main and setup_return for AArch32.
>> >
>> > For AArch64 you don't need anything because, even though the kernel does
>> > trap setend and tweak SCTLR.E0E in response to it, setup_return doesn't
>> > try to restore the native endianness.
>>
>> I didn't think SETEND existed at all in AArch64?
>
> No, but the kernel traps it and flips SCTLR.E0E.

Traps what? There is no encoding in A64, unless I'm missing something...

-- PMM



reply via email to

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