Skip to content

Commit

Permalink
hw/isa: Use isa_address_space_io() to reduce access on global 'isabus'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd committed Feb 27, 2023
1 parent 7067887 commit e5bf277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/isa/isa-bus.c
Expand Up @@ -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);
}

Expand All @@ -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;
}
Expand Down

0 comments on commit e5bf277

Please sign in to comment.