diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-01-20 12:45:54 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:02 +0100 |
commit | e5bf2779a1feafa85adae9a8ba22cbb54af00c85 (patch) | |
tree | bbf2fd2fc38c35852085671789f9042166be3ad7 /hw/isa/isa-bus.c | |
parent | 7067887ea18622e381f09b998b67095f51e4aa49 (diff) | |
download | qemu-e5bf2779a1feafa85adae9a8ba22cbb54af00c85.zip qemu-e5bf2779a1feafa85adae9a8ba22cbb54af00c85.tar.gz qemu-e5bf2779a1feafa85adae9a8ba22cbb54af00c85.tar.bz2 |
hw/isa: Use isa_address_space_io() to reduce access on global 'isabus'
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230210163744.32182-11-philmd@linaro.org>
Diffstat (limited to 'hw/isa/isa-bus.c')
-rw-r--r-- | hw/isa/isa-bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c index ce9999f..b3d2e5e 100644 --- a/hw/isa/isa-bus.c +++ b/hw/isa/isa-bus.c @@ -114,7 +114,7 @@ static inline void isa_init_ioport(ISADevice *dev, uint16_t ioport) void isa_register_ioport(ISADevice *dev, MemoryRegion *io, uint16_t start) { - memory_region_add_subregion(isabus->address_space_io, start, io); + memory_region_add_subregion(isa_address_space_io(dev), start, io); isa_init_ioport(dev, start); } @@ -135,7 +135,7 @@ int isa_register_portio_list(ISADevice *dev, isa_init_ioport(dev, start); portio_list_init(piolist, OBJECT(dev), pio_start, opaque, name); - portio_list_add(piolist, isabus->address_space_io, start); + portio_list_add(piolist, isa_address_space_io(dev), start); return 0; } |