summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2009-06-13 23:03:27 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 17:46:58 -0500
commit73cf22cb601aa2295ce749286d9370a5ddb8be44 (patch)
treed501913f33ab594ce4e2cc0cd5b616af57ea2a7b
parent04f4e710a06cc024a98e3e90be6fcf096d0dd0d3 (diff)
downloadqemu-73cf22cb601aa2295ce749286d9370a5ddb8be44.tar.gz
lsi53c895a: Implement read and write access to DMA Next Address
Fixes the following errors: lsi_scsi: error: Unhandled writeb 0x28 = 0x0 lsi_scsi: error: Unhandled writeb 0x29 = 0x0 lsi_scsi: error: Unhandled writeb 0x2a = 0x0 lsi_scsi: error: Unhandled writeb 0x2b = 0x0 (cherry picked from commit 4b9a2d6de77ccd1e3fb40a0d0c8cd9eddf35e3ab) Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/lsi53c895a.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index c22bd1598b..3470047aed 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -1402,6 +1402,7 @@ static uint8_t lsi_reg_readb(LSIState *s, int offset)
CASE_GET_REG24(dbc, 0x24)
case 0x27: /* DCMD */
return s->dcmd;
+ CASE_GET_REG32(dnad, 0x28)
CASE_GET_REG32(dsp, 0x2c)
CASE_GET_REG32(dsps, 0x30)
CASE_GET_REG32(scratch[0], 0x34)
@@ -1594,6 +1595,7 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val)
}
s->ctest5 = val;
break;
+ CASE_SET_REG32(dnad, 0x28)
case 0x2c: /* DSP[0:7] */
s->dsp &= 0xffffff00;
s->dsp |= val;