Commit 4b9a2d6de77ccd1e3fb40a0d0c8cd9eddf35e3ab

Authored by Sebastian Herbszt
Committed by Anthony Liguori
1 parent bd8ee11a

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

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 2 additions and 0 deletions
hw/lsi53c895a.c
... ... @@ -1403,6 +1403,7 @@ static uint8_t lsi_reg_readb(LSIState *s, int offset)
1403 1403 CASE_GET_REG24(dbc, 0x24)
1404 1404 case 0x27: /* DCMD */
1405 1405 return s->dcmd;
  1406 + CASE_GET_REG32(dnad, 0x28)
1406 1407 CASE_GET_REG32(dsp, 0x2c)
1407 1408 CASE_GET_REG32(dsps, 0x30)
1408 1409 CASE_GET_REG32(scratch[0], 0x34)
... ... @@ -1595,6 +1596,7 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val)
1595 1596 }
1596 1597 s->ctest5 = val;
1597 1598 break;
  1599 + CASE_SET_REG32(dnad, 0x28)
1598 1600 case 0x2c: /* DSP[0:7] */
1599 1601 s->dsp &= 0xffffff00;
1600 1602 s->dsp |= val;
... ...