qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 24/25] lsi: return dfifo value


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 24/25] lsi: return dfifo value
Date: Sat, 9 Mar 2019 08:48:17 +0100

From: Sven Schnelle <address@hidden>

Code was assigning DFIFO, but didn't return the value to users.

Signed-off-by: Sven Schnelle <address@hidden>
Message-Id: <address@hidden>
---
 hw/scsi/lsi53c895a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c
index 66f217f..bf6b6a5 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;
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]