aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJulio Guerra <guerr@julio.in>2013-05-05 23:29:48 +0200
committerAndreas Färber <andreas.faerber@web.de>2013-05-06 02:27:06 +0200
commitb6f54b31e7cfb2e88b76fc6cfc5334a26d1b9e53 (patch)
tree80793a49d2871e4a64e726df6539a0fc7811e11f /hw
parent97c42c3c93d58e14960bfd78771ed154a860acf8 (diff)
prep: Make System I/O port 0092 read/write
Port 0x0092 is documented as read/write, so for now return the endianness state instead of hardcoded 0x00. Signed-off-by: Julio Guerra <guerr@julio.in> [AF: Extracted from larger port 0092 patch] Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/prep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index afa62d7783..be8a50ec4a 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -269,7 +269,7 @@ static uint32_t PREP_io_800_readb (void *opaque, uint32_t addr)
switch (addr) {
case 0x0092:
/* Special port 92 */
- retval = 0x00;
+ retval = sysctrl->endian << 1;
break;
case 0x0800:
/* Motorola CPU configuration register */