qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 1/9] exec: add endian specific phys ld/st fun


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH v2 1/9] exec: add endian specific phys ld/st functions
Date: Tue, 12 Jul 2011 09:52:52 +0200

Am 06.07.2011 um 09:09 schrieb Alexander Graf <address@hidden>:

> Device code some times needs to access physical memory and does that
> through the ld./st._phys functions. However, these are the exact same
> functions that the CPU uses to access memory, which means they will
> be endianness swapped depending on the target CPU.
> 
> However, devices don't know about the CPU's endianness, but instead
> access memory directly using their own interface to the memory bus,
> so they need some way to read data with their native endianness.
> 
> This patch adds _le and _be functions to ld./st._phys.

Blue, mind to apply at least this one if there are no concerns? The API it adds 
makes sense IMHO and I don't want to hold up the megasas patch due to it ;).

Alex

> 



reply via email to

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