qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Volker Ruppert <info@vruppert.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Fix for qemu with latest Bochs BIOS
Date: Sun, 16 Jan 2005 13:24:25 +0100	[thread overview]
Message-ID: <200501161324.25973.info@vruppert.de> (raw)

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.

                 reply	other threads:[~2005-01-16 12:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200501161324.25973.info@vruppert.de \
    --to=info@vruppert.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).