From: Alexander Graf Date: Tue, 5 Jul 2011 16:28:07 +0000 (+0200) Subject: pl080: use specific endian ld/st_phys X-Git-Tag: v0.15.0-rc0~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75b0646f9e25e42cdf1d73f7d2407c4966be48f1;p=thirdparty%2Fqemu.git pl080: use specific endian ld/st_phys Signed-off-by: Alexander Graf Signed-off-by: Blue Swirl --- diff --git a/hw/pl080.c b/hw/pl080.c index 901f04a8449..dd8139ba962 100644 --- a/hw/pl080.c +++ b/hw/pl080.c @@ -199,10 +199,10 @@ again: if (size == 0) { /* Transfer complete. */ if (ch->lli) { - ch->src = ldl_phys(ch->lli); - ch->dest = ldl_phys(ch->lli + 4); - ch->ctrl = ldl_phys(ch->lli + 12); - ch->lli = ldl_phys(ch->lli + 8); + ch->src = ldl_le_phys(ch->lli); + ch->dest = ldl_le_phys(ch->lli + 4); + ch->ctrl = ldl_le_phys(ch->lli + 12); + ch->lli = ldl_le_phys(ch->lli + 8); } else { ch->conf &= ~PL080_CCONF_E; }