aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-09 11:41:47 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-09 11:41:47 +0000
commitbf367b54092014edd36a64195697ea3959fba5cf (patch)
tree7d63c9cfb6bac6d27eec95abe37a4ced112ed988 /hw/acpi.c
parentc6cda17aca3770e178aff5d851da1da9ebb1f210 (diff)
downloadqemu-bf367b54092014edd36a64195697ea3959fba5cf.zip
qemu-bf367b54092014edd36a64195697ea3959fba5cf.tar.gz
qemu-bf367b54092014edd36a64195697ea3959fba5cf.tar.bz2
Match values with the ones documented in the PIIX4 datasheet.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3377 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/acpi.c')
-rw-r--r--hw/acpi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index 37fadaa..6e3f69e 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -400,7 +400,7 @@ static void pm_io_space_update(PIIX4PMState *s)
if (s->dev.config[0x80] & 1) {
pm_io_base = le32_to_cpu(*(uint32_t *)(s->dev.config + 0x40));
- pm_io_base &= 0xfffe;
+ pm_io_base &= 0xffc0;
/* XXX: need to improve memory and ioport allocation */
#if defined(DEBUG)
@@ -474,6 +474,8 @@ i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base)
pci_conf[0x01] = 0x80;
pci_conf[0x02] = 0x13;
pci_conf[0x03] = 0x71;
+ pci_conf[0x06] = 0x80;
+ pci_conf[0x07] = 0x02;
pci_conf[0x08] = 0x00; // revision number
pci_conf[0x09] = 0x00;
pci_conf[0x0a] = 0x80; // other bridge device