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: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH v2 1/9] exec: add endian specific phys ld/st functions
Date: Tue, 12 Jul 2011 23:26:32 +0300

Thanks, applied all.

On Tue, Jul 12, 2011 at 10:52 AM, Alexander Graf <address@hidden> wrote:
>
> 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]