summaryrefslogtreecommitdiffstats
path: root/hw/pc.c
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <qemudevbmw@lsmod.de>2010-04-20 20:48:06 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-05-03 16:03:19 -0500
commitec5f92ce6ac8ec09056be77e03c941be188648fa (patch)
treedc815e2c9d68798d43e62bcde22ce6cc20d2d07e /hw/pc.c
parentcb4e5f8ed1b648c451491b10dc92b1af1e324535 (diff)
downloadhqemu-ec5f92ce6ac8ec09056be77e03c941be188648fa.zip
hqemu-ec5f92ce6ac8ec09056be77e03c941be188648fa.tar.gz
hw: better i440 emulation
updated version of an old patch http://xenon.stanford.edu/~eswierk/misc/qemu-linuxbios/qemu-piix-ram-size.patch that together with http://www.mail-archive.com/linuxbios@linuxbios.org/msg02390.html (which is already in coreboot trunk) allows coreboot to autodetect the amount of RAM within qemu/kvm from a register in i440 northbridge. The message on the old patch states: Unfortunately the current version of qemu does not set these registers, but I have patched qemu so that it emulates the i440 more faithfully in this regard. Signed-off-by: Bernhard M. Wiedemann <qemudevbmw@lsmod.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pc.c b/hw/pc.c
index b659344..db2b9a2 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -924,7 +924,7 @@ static void pc_init1(ram_addr_t ram_size,
isa_irq = qemu_allocate_irqs(isa_irq_handler, isa_irq_state, 24);
if (pci_enabled) {
- pci_bus = i440fx_init(&i440fx_state, &piix3_devfn, isa_irq);
+ pci_bus = i440fx_init(&i440fx_state, &piix3_devfn, isa_irq, ram_size);
} else {
pci_bus = NULL;
isa_bus_new(NULL);
OpenPOWER on IntegriCloud