qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Cole <richard.j.cole@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] DMA active hw_error
Date: Mon, 26 Dec 2011 18:26:29 -0800	[thread overview]
Message-ID: <CABZbFy7G_hkTxMvUCcoEB5dp7ykEA1Br67ir6zdCvNsq6YsvEw@mail.gmail.com> (raw)

I'm new to QEMU so this might be a rather naive question but why is
there a hw_error here:

https://github.com/qemu/QEMU/blob/2ac711791b2e4aabc5e4046b7428727828c705eb/hw/pl080.c#L96

It causes QEMU at least on my machine to abort. It would seem to make
it so the rest of the function will never be executed? That hw_error
(or a cpu_error) line seems have have been there since the file was
imported.

Here's the code fragment in case that link doesn't work.

static void pl080_run(pl080_state *s)
{
    int c;
    int flow;
    pl080_channel *ch;
    int swidth;
    int dwidth;
    int xsize;
    int n;
    int src_id;
    int dest_id;
    int size;
    uint8_t buff[4];
    uint32_t req;

    s->tc_mask = 0;
    for (c = 0; c < s->nchannels; c++) {
        if (s->chan[c].conf & PL080_CCONF_ITC)
            s->tc_mask |= 1 << c;
        if (s->chan[c].conf & PL080_CCONF_IE)
            s->err_mask |= 1 << c;
    }

    if ((s->conf & PL080_CONF_E) == 0)
        return;

hw_error("DMA active\n");
    /* If we are already in the middle of a DMA operation then indicate that
       there may be new DMA requests and return immediately.  */
    if (s->running) {
        s->running++;
        return;
    }

regards,

Richard.

             reply	other threads:[~2011-12-27  2:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-27  2:26 Richard Cole [this message]
2011-12-27  3:21 ` [Qemu-devel] DMA active hw_error Richard Cole
2011-12-27 22:39   ` Peter Maydell
2011-12-28  6:44     ` Richard Cole
2011-12-28 11:32       ` Peter Maydell
2011-12-27 14:33 ` Andreas Färber
2011-12-27 22:27   ` Peter Maydell
2011-12-27 22:19 ` Peter Maydell

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=CABZbFy7G_hkTxMvUCcoEB5dp7ykEA1Br67ir6zdCvNsq6YsvEw@mail.gmail.com \
    --to=richard.j.cole@gmail.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).