aboutsummaryrefslogtreecommitdiff
path: root/hw/i386
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-02-13 12:42:14 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-02-15 16:58:46 +0100
commit5e37bc4997c32a1c9a6621a060462c84df9f1b8f (patch)
tree117f3dab4919e29e8fe865aaaf0cd98c304a692e /hw/i386
parent3c5f86a22686ef475a8259c0d8ee714f61c770c9 (diff)
downloadqemu-5e37bc4997c32a1c9a6621a060462c84df9f1b8f.zip
qemu-5e37bc4997c32a1c9a6621a060462c84df9f1b8f.tar.gz
qemu-5e37bc4997c32a1c9a6621a060462c84df9f1b8f.tar.bz2
hw/dma: Pass parent object to i8257_dma_init()
Set I8257 instances parent (migration isn't affected). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240213114426.87836-1-philmd@linaro.org>
Diffstat (limited to 'hw/i386')
-rw-r--r--hw/i386/pc_piix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 70d12bb..999b7b8 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -310,7 +310,7 @@ static void pc_init1(MachineState *machine,
qdev_prop_set_int32(DEVICE(rtc_state), "base_year", 2000);
isa_realize_and_unref(rtc_state, isa_bus, &error_fatal);
- i8257_dma_init(isa_bus, 0);
+ i8257_dma_init(OBJECT(machine), isa_bus, 0);
pcms->hpet_enabled = false;
idebus[0] = NULL;
idebus[1] = NULL;