From e5d51737539eb1fc638500a53abe65000662bc56 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 11 Sep 2016 18:41:05 +0300 Subject: [PATCH] Workaround for possible NCR emulation bug. --- qemuvga/lsi53c895a.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemuvga/lsi53c895a.cpp b/qemuvga/lsi53c895a.cpp index 4b575f90..6fae0f3e 100644 --- a/qemuvga/lsi53c895a.cpp +++ b/qemuvga/lsi53c895a.cpp @@ -723,7 +723,8 @@ void lsi_command_complete(SCSIRequest *req, uint32_t status, size_t resid) DPRINTF("Command complete status=%d\n", (int)status); s->status = status; s->command_complete = 2; - if (s->waiting && s->dbc != 0) { + // this does not seem to be correct (breaks CSPPC SCSI) + if (0 && s->waiting && s->dbc != 0) { /* Raise phase mismatch for short transfers. */ lsi_bad_phase(s, out, PHASE_ST); } else { -- 2.47.3