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>
This commit is contained in:
Isaku Yamahata authored and Michael S. Tsirkin committed 2009-12-23 16:35:00 +02:00
1 parent e0fe020441
commit a40e3411d1
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}