aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-24 17:08:39 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-26 18:40:28 +0100
commit39fbaeca096a9bf6cbe2af88572c1cb2aa62aa8c (patch)
tree5facee76ab537471ab171145a61370817932c599 /hw
parent7227de94adce761d9add78ad087a98697b2d82e9 (diff)
downloadqemu-39fbaeca096a9bf6cbe2af88572c1cb2aa62aa8c.zip
qemu-39fbaeca096a9bf6cbe2af88572c1cb2aa62aa8c.tar.gz
qemu-39fbaeca096a9bf6cbe2af88572c1cb2aa62aa8c.tar.bz2
artist: set memory region owners for buffers to the artist device
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/display/artist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/artist.c b/hw/display/artist.c
index eadaef0..fde050c 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);