Paul Brook wrote:
It should be good to have a well-defined modular IRQ routing
architecture in the Qemu.


We've got most of one for the ARM targets (see hw/arm_pic.h). This file contains both the target independent bits and the ARM specific bits for emulating the CPU IRQ/FIQ pins.

Annother possibility to abstract this to use a single interrupt line object rather than an {object,index} pair. This simplifies code that that raises interrupts, at the expense of some complication in the code to create interrupt controllers.

I prefer to have a new type 'QEMUBoolSignal' which can be used for any boolean signal. A function could be called to change its level and several clients could set a callback ("listener") to be informed that its level changes.

Regards,

Fabrice.


_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to