via-ide: allow guests to write to PCI_CLASS_PROG
commit20042479810511895d94f2f6ec8455fe0d0a2ce3
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 13 Mar 2020 08:24:43 +0000 (13 08:24 +0000)
committerJohn Snow <jsnow@redhat.com>
Tue, 17 Mar 2020 01:08:21 +0000 (16 21:08 -0400)
tree8d8d6800b13fb5af39c50202dc386c9c4429f28f
parentfa8ac1b769ae1b7681924d4c9d7252e57c612909
via-ide: allow guests to write to PCI_CLASS_PROG

MorphOS writes to PCI_CLASS_PROG during IDE initialisation to place the
controller in native mode, but thinks the initialisation has failed
because the native mode bits aren't set when reading the register back.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: 20200313082444.2439-7-mark.cave-ayland@ilande.co.uk
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/via.c