mirror of https://github.com/xemu-project/xemu.git
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:
parent
e0fe020441
commit
a40e3411d1
|
@ -437,7 +437,7 @@ static void pm_write_config(PCIDevice *d,
|
||||||
uint32_t address, uint32_t val, int len)
|
uint32_t address, uint32_t val, int len)
|
||||||
{
|
{
|
||||||
pci_default_write_config(d, address, val, 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);
|
pm_io_space_update((PIIX4PMState *)d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue