qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Karthik <karthikshanmugam@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] ARM IRQ Generation
Date: Wed, 25 May 2016 18:21:34 +0530	[thread overview]
Message-ID: <CAAmr2Y_74zEqEnEzd-+KvJzvVh33f7NPNFAc6+Vipqq3gtkH2Q@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA8sknHv17hc6xhzh6wgcxQcowRpeoJz7OZ-d6SeJRyaSw@mail.gmail.com>

Okay. Thank you.

Best regards,
Karthik

On Wed, May 25, 2016 at 6:18 PM, Peter Maydell <peter.maydell@linaro.org>
wrote:

> On 25 May 2016 at 13:42, Karthik <karthikshanmugam@gmail.com> wrote:
> > Okay, understood. I`ll hold the IRQ line until CPU acknowledges the
> > interrupt.
> >
> > By the way, is there a distinction between edge and level triggered
> > interrupt in the qemu or it is up to the emulation implementation?
>
> In QEMU, if you call qemu_set_irq(irq, 1) this is equivalent to
> the hardware taking the IRQ wire to logical 1. Calling
> qemu_set_irq(irq, 0) is taking the wire to logical 0.
> (qemu_irq_pulse() takes the wire very briefly to logical 1, and
> is a bit of an odd thing to do.) You need to do what the hardware
> does to the hardware irq wire in the same situations when the
> hardware changes the irq wire state.
>
> Edge vs level is about what a device does when it sees a change
> in state on an an incoming interrupt wire. "Edge triggered" means
> it cares about the 0->1 change, and implies that it has an
> internal latch which is set when the edge is detected, so that
> it doesn't matter if the incoming wire drops to 0 again. "Level
> triggered" means that it is the level state of the incoming wire
> that matters. This is again all about "how do you behave when
> you see the wire state changing", and you need to do what the
> hardware does. If the hardware is strictly edge-triggered then
> your model should be also; if it is always level-triggered then
> your model must do the same; if it is configurable then again
> you need to model the configurability.
>
> thanks
> -- PMM
>

      reply	other threads:[~2016-05-25 12:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25 10:47 [Qemu-devel] ARM IRQ Generation Karthik
2016-05-25 12:34 ` Peter Maydell
2016-05-25 12:42   ` Karthik
2016-05-25 12:48     ` Peter Maydell
2016-05-25 12:51       ` Karthik [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=CAAmr2Y_74zEqEnEzd-+KvJzvVh33f7NPNFAc6+Vipqq3gtkH2Q@mail.gmail.com \
    --to=karthikshanmugam@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).