]> git.ipfire.org Git - thirdparty/qemu.git/commit - exec.c
exec: add endian specific phys ld/st functions
authorAlexander Graf <agraf@suse.de>
Wed, 6 Jul 2011 07:09:23 +0000 (09:09 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 12 Jul 2011 20:00:24 +0000 (20:00 +0000)
commit1e78bcc19c60c60c11ece020ab35952b5b2895ec
tree098bf026227f6a0ece549f6adac000f5298aad45
parentc925400ba83bd57bf560e071f400012248f1644a
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>
cpu-common.h
exec.c