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 2009-12-15 20:26:03 +09:00 committed by Michael S. Tsirkin
parent e0fe020441
commit a40e3411d1

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);
}