From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHDov-0002Ui-Jd for qemu-devel@nongnu.org; Thu, 18 Jun 2009 05:22:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHDoq-0002Sy-80 for qemu-devel@nongnu.org; Thu, 18 Jun 2009 05:22:08 -0400 Received: from [199.232.76.173] (port=58305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHDoq-0002Sv-2I for qemu-devel@nongnu.org; Thu, 18 Jun 2009 05:22:04 -0400 Received: from mx2.redhat.com ([66.187.237.31]:55148) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHDop-0004uj-LM for qemu-devel@nongnu.org; Thu, 18 Jun 2009 05:22:03 -0400 Message-ID: <4A3A06D4.60303@redhat.com> Date: Thu, 18 Jun 2009 12:20:20 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Register uhci_reset() callback. References: <20090615170201.GA3964@redhat.com> <20090615181622.GA782@redhat.com> <20090615193054.GB782@redhat.com> <20090615200552.GC782@redhat.com> <20090616152050.GD782@redhat.com> <20090616170931.GE782@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org, Gleb Natapov , Paul Brook On 06/16/2009 08:19 PM, Blue Swirl wrote: > That was the conclusion then, but it was incorrect. Real HW works like > that, but qemu_irq only handles transition edges. It does not have > state. > A hardware irq line does not have state either. It's a means of exposing state within a device to somewhere else. On reset, the device internal state changes, and the qemu_irq must reflect that change. Internal muxes like the shared-line OR gates don't have state; they can always be recomputed from their inputs. -- error compiling committee.c: too many arguments to function