]> git.proxmox.com Git - mirror_qemu.git/commit - hw/mips/mips_malta.c
malta: Fix regression (i8259 interrupts did not work)
authorStefan Weil <sw@weilnetz.de>
Tue, 29 Nov 2011 05:34:48 +0000 (06:34 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 7 Jan 2012 17:16:24 +0000 (18:16 +0100)
commite9b40fd34ceb23461083d505a444a389c094455b
tree99916c8b2d39fbc89228ff27d3ebad3cb292699b
parenta2e4d53ec5cc1983a615d87b251726f17358be9a
malta: Fix regression (i8259 interrupts did not work)

Commit 5632ae46d5bda798e971dae48ebb318ac2c3686a passes the address
of i8259 to qemu_irq_proxy. i8259 is an auto variable with undefined
value outside of mips_malta_init.

This made the interrupt proxy unusable: either QEMU crashes, or
the interrupt handler was not called.

Ethernet for example no longer worked with MIPS Malta.

v2:
While v1 used a static variable for i8259, this patch introduces
a qdev for the malta machine. i8259 is now part of the device status.
This is a minimal qdev implementation to keep the patch small.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/mips_malta.c