hw/m68k/q800: fix PROM checksum and MAC address storage
commit846feac2ae1d1dab08c0048807ce802a256179fd
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 25 Jun 2021 06:53:58 +0000 (25 07:53 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 2 Jul 2021 15:35:08 +0000 (2 17:35 +0200)
tree61bbe426e00f3c35b82d5d3c05ead161feee63ed
parentdb1ffc32dd0d32ef476c00637efc888ecea8466c
hw/m68k/q800: fix PROM checksum and MAC address storage

The checksum used by MacOS to validate the PROM content is an exclusive-OR
rather than a sum over the corresponding bytes. In addition the MAC address
must be stored in bit-reversed format as indicated in comments in Linux's
macsonic.c.

With the PROM contents fixed MacOS starts to probe the device registers
when AppleTalk is enabled in the Control Panel.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Finn Thain <fthain@linux-m68k.org>
Message-Id: <20210625065401.30170-8-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/m68k/q800.c