qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] arm: explicitly mark loads as little-endian


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] arm: explicitly mark loads as little-endian
Date: Tue, 15 Dec 2015 11:24:16 +0000

On 4 December 2015 at 12:28, Paolo Bonzini <address@hidden> wrote:
> ARM softmmu is always compiled as little endian; BE8/BE32 can be
> done as part of CPU emulation.  Thus, devices need not use the
> endian-dependent loads and swaps.
>
> Signed-off-by: Paolo Bonzini <address@hidden>

I have applied this to target-arm.next with a tweaked
commit message:

arm: explicitly mark device loads as little-endian

Behaviour of emulated devices should not depend on the endianness
of the CPU, so avoid using the endian-dependent load and store
functions in the PXA2xx and OMAP display devices. These devices
are little endian when they do DMA access.

(Since ARM softmmu is always compiled as little endian, this means
that the endian-dependent load and store functions are always little
endian, so this commit makes no functionally visible change.)

thanks
-- PMM



reply via email to

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