IDE features register is no longer written to both devices at once, fixes CD-ROM boot on the AMI Apollo.

This commit is contained in:
OBattler
2023-05-18 00:20:23 +02:00
parent b48a56419e
commit 5c26d3d4b3

View File

@@ -1455,9 +1455,15 @@ ide_writeb(uint16_t addr, uint8_t val, void *priv)
}
ide->cylprecomp = val;
/* The ATA-3 specification says this register is the parameter for the
command and is unclear as to whether or not it's written to both
devices at once. Writing it to both devices at once breaks CD boot
on the AMI Apollo. */
#ifdef WRITE_PARAM_TO_BOTH_DEVICES
if (ide_other->type == IDE_ATAPI)
ide_other->sc->features = val;
ide_other->cylprecomp = val;
#endif
return;
case 0x2: /* Sector count */