Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB3vt-00020M-GA for qemu-devel@nongnu.org; Thu, 19 Nov 2009 05:08:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB3vo-0001xx-GG for qemu-devel@nongnu.org; Thu, 19 Nov 2009 05:08:08 -0500 Received: from [199.232.76.173] (port=52206 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB3vn-0001xg-Vx for qemu-devel@nongnu.org; Thu, 19 Nov 2009 05:08:04 -0500 Received: from david.siemens.de ([192.35.17.14]:15908) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NB3vn-0001LB-6H for qemu-devel@nongnu.org; Thu, 19 Nov 2009 05:08:03 -0500 Resent-To: qemu-devel Resent-Message-Id: <4B0518FF.7030800@siemens.com> From: Jan Kiszka Date: Thu, 19 Nov 2009 11:07:12 +0100 Message-ID: <20091119100712.16666.12700.stgit@mchn012c.ww002.siemens.net> In-Reply-To: <20091119100711.16666.2282.stgit@mchn012c.ww002.siemens.net> References: <20091119100711.16666.2282.stgit@mchn012c.ww002.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 6/7] lsi53c895a: Use alternative address when already reselected List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Laszlo Ast From: Laszlo Ast See SCRIPTS, 3.2.17 SELECT. Signed-off-by: Laszlo Ast Signed-off-by: Jan Kiszka --- hw/lsi53c895a.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 4c638be..480fbca 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -1038,8 +1038,9 @@ again: switch (opcode) { case 0: /* Select */ s->sdid = id; - if (s->current_dma_len && (s->ssid & 0xf) == id) { - DPRINTF("Already reselected by target %d\n", id); + if (s->scntl1 & LSI_SCNTL1_CON) { + DPRINTF("Already reselected, jumping to alternative address\n"); + s->dsp = s->dnad; break; } s->sstat0 |= LSI_SSTAT0_WOA;