qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Hardware interrupts
Date: Mon, 17 Jul 2006 19:44:02 +0100	[thread overview]
Message-ID: <200607171944.03284.paul@codesourcery.com> (raw)
In-Reply-To: <b921df970607171128l5f62523ep37195dc00b5b676c@mail.gmail.com>

> "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

      reply	other threads:[~2006-07-17 18:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-17 18:28 [Qemu-devel] Hardware interrupts Alessandro Corradi
2006-07-17 18:44 ` Paul Brook [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200607171944.03284.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).