qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/arm/fsl-imx6ul: Connect watchdog interrupts

With this commit, the watchdog on mcimx6ul-evk is fully operational,
including pretimeout support.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Message-id: 20200517162135.110364-7-linux@roeck-us.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

authored by

Guenter Roeck and committed by
Peter Maydell
5671e960 bd8045a7

+10
+10
hw/arm/fsl-imx6ul.c
··· 531 531 FSL_IMX6UL_WDOG2_ADDR, 532 532 FSL_IMX6UL_WDOG3_ADDR, 533 533 }; 534 + static const int FSL_IMX6UL_WDOGn_IRQ[FSL_IMX6UL_NUM_WDTS] = { 535 + FSL_IMX6UL_WDOG1_IRQ, 536 + FSL_IMX6UL_WDOG2_IRQ, 537 + FSL_IMX6UL_WDOG3_IRQ, 538 + }; 534 539 540 + object_property_set_bool(OBJECT(&s->wdt[i]), true, "pretimeout-support", 541 + &error_abort); 535 542 object_property_set_bool(OBJECT(&s->wdt[i]), true, "realized", 536 543 &error_abort); 537 544 538 545 sysbus_mmio_map(SYS_BUS_DEVICE(&s->wdt[i]), 0, 539 546 FSL_IMX6UL_WDOGn_ADDR[i]); 547 + sysbus_connect_irq(SYS_BUS_DEVICE(&s->wdt[i]), 0, 548 + qdev_get_gpio_in(DEVICE(&s->a7mpcore), 549 + FSL_IMX6UL_WDOGn_IRQ[i])); 540 550 } 541 551 542 552 /*