summary refs log tree commit diff stats
path: root/hw/arm/realview.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-09-22 16:41:32 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-02-26 18:39:58 +0100
commitc2093660d99dc88dc5638297c42467e8e9d6466c (patch)
treeac68dfb2458638752a12cbacadcacb103ac80d4e /hw/arm/realview.c
parent49aff03e1bc93fbc6aed6754fa0b42c4581a54a3 (diff)
downloadfocaccia-qemu-c2093660d99dc88dc5638297c42467e8e9d6466c.tar.gz
focaccia-qemu-c2093660d99dc88dc5638297c42467e8e9d6466c.zip
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>
Diffstat (limited to 'hw/arm/realview.c')
-rw-r--r--hw/arm/realview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/arm/realview.c b/hw/arm/realview.c
index 77300e92e5..b186f965c6 100644
--- a/hw/arm/realview.c
+++ b/hw/arm/realview.c
@@ -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]);