[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 55/55] artist: set memory region owners for buffers to the artist
From: |
Mark Cave-Ayland |
Subject: |
[PULL 55/55] artist: set memory region owners for buffers to the artist device |
Date: |
Sun, 26 Jun 2022 18:45:31 +0100 |
This fixes the output of "info qom-tree" so that the buffers appear as children
of the artist device, rather than underneath the "unattached" container.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220624160839.886649-1-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Helge Deller <deller@gmx.de>
---
hw/display/artist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/display/artist.c b/hw/display/artist.c
index eadaef0d46..fde050c882 100644
--- a/hw/display/artist.c
+++ b/hw/display/artist.c
@@ -1358,7 +1358,7 @@ static void artist_create_buffer(ARTISTState *s, const
char *name,
{
struct vram_buffer *buf = s->vram_buffer + idx;
- memory_region_init_ram(&buf->mr, NULL, name, width * height,
+ memory_region_init_ram(&buf->mr, OBJECT(s), name, width * height,
&error_fatal);
memory_region_add_subregion_overlap(&s->mem_as_root, *offset, &buf->mr, 0);
--
2.30.2
- [PULL 42/55] lasips2: move mapping of LASIPS2 registers to HPPA machine, (continued)
- [PULL 42/55] lasips2: move mapping of LASIPS2 registers to HPPA machine, Mark Cave-Ayland, 2022/06/26
- [PULL 44/55] lasips2: add base property, Mark Cave-Ayland, 2022/06/26
- [PULL 43/55] lasips2: move initialisation of PS2 ports from lasi_initfn() to lasi_init(), Mark Cave-Ayland, 2022/06/26
- [PULL 45/55] lasips2: implement lasips2_realize(), Mark Cave-Ayland, 2022/06/26
- [PULL 46/55] lasips2: use sysbus IRQ for output IRQ, Mark Cave-Ayland, 2022/06/26
- [PULL 47/55] lasips2: switch over from update_irq() function to PS2 device gpio, Mark Cave-Ayland, 2022/06/26
- [PULL 48/55] lasips2: add QEMU interface comment, Mark Cave-Ayland, 2022/06/26
- [PULL 49/55] pckbd: switch I8042_MMIO device from update_irq() function to PS2 device gpio, Mark Cave-Ayland, 2022/06/26
- [PULL 50/55] pckbd: add QEMU interface comment for I8042_MMIO device, Mark Cave-Ayland, 2022/06/26
- [PULL 51/55] pckbd: add i8042_reset() function to I8042 device, Mark Cave-Ayland, 2022/06/26
- [PULL 55/55] artist: set memory region owners for buffers to the artist device,
Mark Cave-Ayland <=
- [PULL 53/55] pckbd: add QEMU interface comment for I8042 device, Mark Cave-Ayland, 2022/06/26
- [PULL 54/55] ps2: remove update_irq() function and update_arg parameter, Mark Cave-Ayland, 2022/06/26
- [PULL 52/55] pckbd: switch I8042 device from update_irq() function to PS2 device gpio, Mark Cave-Ayland, 2022/06/26
- Re: [PULL 00/55] qemu-sparc queue 20220626, Richard Henderson, 2022/06/27