aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-12-15 20:26:03 +0900
committerMichael S. Tsirkin <mst@redhat.com>2009-12-23 16:35:00 +0200
commita40e3411d199c43ea1eb837da642829d6a2d0148 (patch)
tree3dca8ed3ca1a59c672c3cea9c2f10d41197fdbd6 /hw
parente0fe0204416b9ea2936ffba69bdd26b2a5c9da02 (diff)
downloadqemu-a40e3411d199c43ea1eb837da642829d6a2d0148.zip
qemu-a40e3411d199c43ea1eb837da642829d6a2d0148.tar.gz
qemu-a40e3411d199c43ea1eb837da642829d6a2d0148.tar.bz2
acpi: use range helper function.
use range helper function in pm_write_config(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index 9a69e7d..ad72297 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -437,7 +437,7 @@ static void pm_write_config(PCIDevice *d,
uint32_t address, uint32_t val, int len)
{
pci_default_write_config(d, address, val, len);
- if (address == 0x80)
+ if (range_covers_byte(address, len, 0x80))
pm_io_space_update((PIIX4PMState *)d);
}