aboutsummaryrefslogtreecommitdiff
path: root/hw/spapr.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2011-07-05 18:28:10 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-07-12 20:00:33 +0000
commit06c46bbab04faa3b5a1c10756be7db4f09af1ffb (patch)
treed92c4910f1c240b9abfd19867508ececfdfa30e2 /hw/spapr.h
parent04bc74edecef1b671c84be0b402998e96a282889 (diff)
downloadqemu-06c46bbab04faa3b5a1c10756be7db4f09af1ffb.zip
qemu-06c46bbab04faa3b5a1c10756be7db4f09af1ffb.tar.gz
qemu-06c46bbab04faa3b5a1c10756be7db4f09af1ffb.tar.bz2
spapr: use specific endian ld/st_phys
Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/spapr.h')
-rw-r--r--hw/spapr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/spapr.h b/hw/spapr.h
index b52133a..263691b 100644
--- a/hw/spapr.h
+++ b/hw/spapr.h
@@ -280,12 +280,12 @@ target_ulong spapr_hypercall(CPUState *env, target_ulong opcode,
static inline uint32_t rtas_ld(target_ulong phys, int n)
{
- return ldl_phys(phys + 4*n);
+ return ldl_be_phys(phys + 4*n);
}
static inline void rtas_st(target_ulong phys, int n, uint32_t val)
{
- stl_phys(phys + 4*n, val);
+ stl_be_phys(phys + 4*n, val);
}
typedef void (*spapr_rtas_fn)(sPAPREnvironment *spapr, uint32_t token,