]> git.proxmox.com Git - qemu.git/commitdiff
prep: Make System I/O port 0092 read/write
authorJulio Guerra <guerr@julio.in>
Sun, 5 May 2013 21:29:48 +0000 (23:29 +0200)
committerAndreas Färber <andreas.faerber@web.de>
Mon, 6 May 2013 00:27:06 +0000 (02:27 +0200)
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>
hw/ppc/prep.c

index afa62d77835807a02a0ff6941658b732f36dd19e..be8a50ec4a59d7044df5912fdab1c95d9f467520 100644 (file)
@@ -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 */