On 28 August 2013 10:33, she roy <she.min....@gmail.com> wrote: > I tried to set GPIOIC in the ISR, but the result was the same, a lot of > interrupts generated. I guess it is because I call >>> > qemu_set_irq(gPl061->irq, 1); >>> > sleep(1); >>> > qemu_set_irq(gPl061->irq, 0); > in a thread I created. And I don't know how to call these functions in a > qemu thread.
Don't try to create extra threads either -- QEMU uses threads for a fairly limited set of purposes and calling functions from random new threads you've created is probably just going to go badly wrong. If you really need an IRQ line which goes high and then low after a while you need to set up a QEMU timer and lower the IRQ in the timer callback. This is pretty weird behaviour unless you're really modelling a timer device, though. -- PMM