Merge pull request #2922 from 86Box/tc1995

IDE/ATAPI: Don't overwrite data in packet writes during Phase Data In.
This commit is contained in:
Miran Grča
2022-11-30 21:48:22 +01:00
committed by GitHub

View File

@@ -1150,6 +1150,9 @@ ide_atapi_packet_write(ide_t *ide, uint32_t val, int length)
bufferw = (uint16_t *) bufferb;
bufferl = (uint32_t *) bufferb;
if (dev->packet_status == PHASE_DATA_IN)
return;
switch (length) {
case 1:
bufferb[dev->pos] = val & 0xff;