qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Artyom Tarasenko <atar4qemu@googlemail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [patch] esp.c fast SCSI-bus reset
Date: Tue, 28 Jul 2009 20:14:51 +0200	[thread overview]
Message-ID: <fb8d4f70907281114t31fc72c5pb18890f2167722bf@mail.gmail.com> (raw)
In-Reply-To: <f43fc5580907260640w7000415am1120b3d9354484a4@mail.gmail.com>

> Unfortunately it also makes BSDs think that the bus reset hasn't happened:


How about this one? Seems to be fine with NetBSD. Not "fast" though,
emulates more precisely what would happen on a real hw.

--- qemu-master/hw/esp.c.master 2009-07-28 19:42:24.161417594 +0200
+++ qemu-master/hw/esp.c        2009-07-28 20:08:15.683543101 +0200
@@ -448,6 +448,11 @@
        // Clear interrupt/error status bits
        s->rregs[ESP_RSTAT] &= ~(STAT_GE | STAT_PE);
        esp_lower_irq(s);
+        // Clear bus reset
+        if(INTR_RST==s->rregs[ESP_RINTR]) {

+            s->rregs[ESP_RINTR] = 0;

+             return INTR_RST;
+       }
        break;
    default:
        break;

  reply	other threads:[~2009-07-28 18:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 10:21 [Qemu-devel] [patch] esp.c fast SCSI-bus reset Artyom Tarasenko
2009-07-26 13:40 ` Blue Swirl
2009-07-28 18:14   ` Artyom Tarasenko [this message]
2009-07-31  7:44     ` Blue Swirl
2009-07-31  8:29       ` Artyom Tarasenko

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=fb8d4f70907281114t31fc72c5pb18890f2167722bf@mail.gmail.com \
    --to=atar4qemu@googlemail.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).