qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 2/8] linux-user: arm: set CPSR.E correctly fo


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 2/8] linux-user: arm: set CPSR.E correctly for BE8 mode
Date: Fri, 30 May 2014 08:46:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 29/05/2014 22:38, Peter Maydell ha scritto:
> +#ifdef TARGET_WORDS_BIGENDIAN
> +    cpsr |= CPSR_E;
This is wrong for BE32, where CPSR_E doesn't exist and both code
and data accesses are big-endian.


Is it okay for simplicity to treat CPSR.E = 1 as "big-endian code, little-endian data" in BE32 mode? The architecture manual leaves it undefined.

Paolo



reply via email to

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