Searched hist:"1 e78bcc19c60c60c11ece020ab35952b5b2895ec" (Results 1 – 1 of 1) sorted by relevance
/qemu/include/exec/ |
H A D | cpu-common.h | 1e78bcc19c60c60c11ece020ab35952b5b2895ec Wed Jul 06 07:09:23 UTC 2011 Alexander Graf <agraf@suse.de> exec: add endian specific phys ld/st functions
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.
Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
|