OSDN Git Service

hw/isa/piix3: Prefer pci_address_space() over get_system_memory()
authorBernhard Beschow <shentey@gmail.com>
Sat, 22 Oct 2022 15:04:31 +0000 (17:04 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 31 Oct 2022 10:32:07 +0000 (11:32 +0100)
commit57654b8e98785f2188b64dd45489dc29b426663c
tree3f999f80e888d1696a03c50cd62a9cec988644ab
parenta1b05751faf7769cec3b1751da0239d2ced27b35
hw/isa/piix3: Prefer pci_address_space() over get_system_memory()

get_system_memory() accesses global state while pci_address_space() uses
whatever has been passed to the device instance, so avoid the global.
Moreover, PIIX4 uses pci_address_space() here as well.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20221022150508.26830-7-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/isa/piix3.c