From b6f54b31e7cfb2e88b76fc6cfc5334a26d1b9e53 Mon Sep 17 00:00:00 2001 From: Julio Guerra Date: Sun, 5 May 2013 23:29:48 +0200 Subject: prep: Make System I/O port 0092 read/write MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port 0x0092 is documented as read/write, so for now return the endianness state instead of hardcoded 0x00. Signed-off-by: Julio Guerra [AF: Extracted from larger port 0092 patch] Signed-off-by: Andreas Färber --- hw/ppc/prep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index afa62d7..be8a50e 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 */ -- cgit v1.1