[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] question about irq update
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] question about irq update |
Date: |
Fri, 15 Jun 2012 11:04:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Il 15/06/2012 10:42, Zhi Hui Li ha scritto:
>
> bool qtest_get_irq(QTestState *s, int num)
> {
> /* dummy operation in order to make sure irq is up to date */
> qtest_inb(s, 0);
>
> return s->irq_level[num];
> }
>
> but I don't know how it can make the irq up to date
> and why we will read from the address of 0 ?
It just forces libqtest to read any pending events.
Paolo