From: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
To: Nguyen Anh Quynh <aquynh@gmail.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] How Qemu timer interrupts code emulation?
Date: Sat, 23 May 2015 01:03:20 +0200 [thread overview]
Message-ID: <555FB5B8.50609@mail.uni-paderborn.de> (raw)
In-Reply-To: <CALs2ch9a01pibzjgc2Zi_-VnJ+qarRVbx3QWwE1YZ+8ajp4EAw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]
On 05/22/2015 06:26 PM, Nguyen Anh Quynh wrote:
>
>
> On Sat, May 23, 2015 at 12:13 AM, Peter Maydell
> <peter.maydell@linaro.org <mailto:peter.maydell@linaro.org>> wrote:
>
> On 22 May 2015 at 16:36, Jun Koi <junkoi2004@gmail.com
> <mailto:junkoi2004@gmail.com>> wrote:
> > In general, we would have timer & code execution run in parallel,
>
> No code has to actually run when there's an active timer;
> the event loop thread mostly sits blocked waiting for
> something interesting to happen (io or a timer firing).
> When it does then the event loop thread will call the
> generic timer code, which will call the callback function
> for that timer. Typically this is inside the device model
> for whatever timer the hardware you're modelling is. It
> will then (assuming it really wants to create a simulated
> interrupt) call qemu_irq_set()
>
>
> What is the exact name of this function? There is no such qemu_irq_set()
> in the latest 2.3.0 source.
>
Peter just got it switched around, it's qemu_set_irq() in include/hw/irq.h.
Cheers,
Bastian
[-- Attachment #2: Type: text/html, Size: 2359 bytes --]
prev parent reply other threads:[~2015-05-22 23:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 15:36 [Qemu-devel] How Qemu timer interrupts code emulation? Jun Koi
2015-05-22 16:13 ` Peter Maydell
2015-05-22 16:26 ` Nguyen Anh Quynh
2015-05-22 23:03 ` Bastian Koppelmann [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=555FB5B8.50609@mail.uni-paderborn.de \
--to=kbastian@mail.uni-paderborn.de \
--cc=aquynh@gmail.com \
--cc=peter.maydell@linaro.org \
--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).