qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Hardware interrupts
@ 2006-07-17 18:28 Alessandro Corradi
  2006-07-17 18:44 ` Paul Brook
  0 siblings, 1 reply; 2+ messages in thread
From: Alessandro Corradi @ 2006-07-17 18:28 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

 <http://fabrice.bellard.free.fr/qemu/qemu-tech.html#TOC18>
<http://fabrice.bellard.free.fr/qemu/qemu-tech.html#TOC18>

Hi all,

In http://fabrice.bellard.free.fr/qemu/qemu-tech.html:

"In order to be faster, QEMU does not check at every basic block if an
hardware interrupt is pending. Instead, the user must asynchrously call a
specific function to tell that an interrupt is pending. This function resets
the chaining of the currently executing basic block. It ensures that the
execution will return soon in the main loop of the CPU emulator. Then the
main loop can test if the interrupt is pending and handle it."
What means "the user must asynchrously call a specific function..."?

In which sense "user must"?

Which "Specific function"?

How QEMU checks for hardware interrups?

Thanks

[-- Attachment #2: Type: text/html, Size: 1025 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Hardware interrupts
  2006-07-17 18:28 [Qemu-devel] Hardware interrupts Alessandro Corradi
@ 2006-07-17 18:44 ` Paul Brook
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Brook @ 2006-07-17 18:44 UTC (permalink / raw)
  To: qemu-devel

> "In order to be faster, QEMU does not check at every basic block if an
> hardware interrupt is pending. Instead, the user must asynchrously call a
> specific function to tell that an interrupt is pending. This function
> resets the chaining of the currently executing basic block. It ensures that
> the execution will return soon in the main loop of the CPU emulator. Then
> the main loop can test if the interrupt is pending and handle it."
> What means "the user must asynchrously call a specific function..."?
>
> In which sense "user must"?

Whoever wants to raise the interrupt.

> Which "Specific function"?

Usually pic_set_irq_new.

I recommend you look at how the existing hardware devices are implemented. 
That should answer most of your questions. I'd start with something simple 
like serial.c or pl050.c

Paul

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-17 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-17 18:28 [Qemu-devel] Hardware interrupts Alessandro Corradi
2006-07-17 18:44 ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).