sun4m: move DMA device wiring from sparc32_dma_init() to sun4m_hw_init()
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 14 Oct 2017 12:22:21 +0000 (13:22 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 31 Oct 2017 17:25:35 +0000 (17:25 +0000)
commit9540619d82da44d5c0a1e8895598461b8d5e3dca
tree3804ad2a672d14f6ecd4c5969812fda2c6e4d9c3
parent9db2cf3f29a843829b9dff870948ddfb26eb1288
sun4m: move DMA device wiring from sparc32_dma_init() to sun4m_hw_init()

By using the sysbus interface it is possible to wire up the esp/le devices
to the sun4m DMA controller directly during sun4m_hw_init() instead of
passing qemu_irqs into the sparc32_dma_init() function.

This is an intermediate step to allow further reorganisation as more logic
is moved into the relevant SPARC32 DMA devices; there will be a final
refactoring of sparc32_dma_init() once this work is complete.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sparc/sun4m.c
This page took 0.021431 seconds and 4 git commands to generate.