mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/display/pl110: Pass frame buffer memory region as link property
Add the PL110::'framebuffer-memory' property. Have the different ARM boards set it. We don't need to call sysbus_address_space() anymore. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240226173805.289-3-philmd@linaro.org>
This commit is contained in:
parent
49aff03e1b
commit
c2093660d9
5 changed files with 27 additions and 4 deletions
|
@ -239,6 +239,8 @@ static void realview_init(MachineState *machine,
|
|||
gpio2 = sysbus_create_simple("pl061", 0x10015000, pic[8]);
|
||||
|
||||
dev = qdev_new("pl111");
|
||||
object_property_set_link(OBJECT(dev), "framebuffer-memory",
|
||||
OBJECT(sysmem), &error_fatal);
|
||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
|
||||
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, 0x10020000);
|
||||
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, pic[23]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue