|
From: | Fabrice Bellard |
Subject: | Re: [Qemu-devel] [RFC] IRQ acknowledge on MIPS |
Date: | Tue, 23 Jan 2007 21:22:51 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |