[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.0.5-testing] qemu: Do not kill ioemu if undefined LSI-SCI registers are read. Just



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1177413168 -3600
# Node ID a7bd11fd5b1b6f4a82135db09dfe654e8966fabe
# Parent  8ff0df8ad5879596b38ecece8efda867285226bd
qemu: Do not kill ioemu if undefined LSI-SCI registers are read. Just
return zeroes. This path is triggered by ASPI8DOS.SYS in DRDOS.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/ioemu/hw/lsi53c895a.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -r 8ff0df8ad587 -r a7bd11fd5b1b tools/ioemu/hw/lsi53c895a.c
--- a/tools/ioemu/hw/lsi53c895a.c       Tue Apr 24 11:39:13 2007 +0100
+++ b/tools/ioemu/hw/lsi53c895a.c       Tue Apr 24 12:12:48 2007 +0100
@@ -1071,8 +1071,13 @@ static uint8_t lsi_reg_readb(LSIState *s
         shift = (offset & 3) * 8;
         return (s->scratch[n] >> shift) & 0xff;
     }
+#ifndef CONFIG_DM
     BADF("readb 0x%x\n", offset);
     exit(1);
+#else
+    /* XEN: This path can be triggered (e.g. ASPI8DOS.SYS reads 0x8). */
+    return 0;
+#endif
 #undef CASE_GET_REG32
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.