summaryrefslogtreecommitdiff
path: root/hw/scsi
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2019-03-05 20:55:19 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-11 16:33:49 +0100
commit07163c99a9870d38d010f3528424525d7f7505b9 (patch)
tree92ab2bb52d1a77a25b893c02ee7d0714887a4a60 /hw/scsi
parent82cf2bcfe67c8802c186cfe3332efe43042e2478 (diff)
lsi: return dfifo value
Code was assigning DFIFO, but didn't return the value to users. Signed-off-by: Sven Schnelle <svens@stackframe.org> Message-Id: <20190305195519.24303-6-svens@stackframe.org>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/lsi53c895a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c
index 66f217f8f6..bf6b6a52f1 100644
--- a/hw/scsi/lsi53c895a.c
+++ b/hw/scsi/lsi53c895a.c
@@ -1688,7 +1688,7 @@ static uint8_t lsi_reg_readb(LSIState *s, int offset)
break;
CASE_GET_REG32(temp, 0x1c)
case 0x20: /* DFIFO */
- ret = 0;
+ ret = s->dfifo;
break;
case 0x21: /* CTEST4 */
ret = s->ctest4;