qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Fix for qemu with latest Bochs BIOS
@ 2005-01-16 12:24 Volker Ruppert
  0 siblings, 0 replies; only message in thread
From: Volker Ruppert @ 2005-01-16 12:24 UTC (permalink / raw)
  To: qemu-devel

Hi all!

Some people tried to use qemu and the latest Bochs BIOS from CVS without 
success. The reason for the failure is the modified PCI IRQ routing table and 
the PCI IRQ initialization. The small patch below fixes the problem (tested 
with WinNT 4.0 SP6).

The reason for the modified pirq routing table is the USB controller of the 
PIIX3 chipset. According to the specs it uses the INTD pin hardwired to 
PIRQD. To implement this, I had to place the PIIX3 at entry #1 of the routing 
table. I removed the i440FX PMC/DBX from the table, since it doesn't use an 
IRQ line. The devices connected to slots are using now the entries #2 to #6. 

If the patch works in all cases you can also remove the temporary pci irq 
initialization code.

diff -urN /home/volker/qemu/hw/pci.c ./hw/pci.c
--- /home/volker/qemu/hw/pci.c  2004-10-09 23:25:21.000000000 +0200
+++ ./hw/pci.c  2004-12-24 20:10:50.000000000 +0100
@@ -494,7 +494,7 @@
 static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)
 {
     int slot_addend;
-    slot_addend = (pci_dev->devfn >> 3);
+    slot_addend = (pci_dev->devfn >> 3) - 1;
     return (irq_num + slot_addend) & 3;
 }
 
--
Bye

Volker

P.S.: The latest Bochs BIOS also implements some missing PS/2 mouse functions. 
Now it is possible to implement wheel mouse support. In Bochs the wheel works 
now in the Win98 guest.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-16 12:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-16 12:24 [Qemu-devel] Fix for qemu with latest Bochs BIOS Volker Ruppert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).