mac_via: fix 60Hz VIA1 timer interval
commit82ff856fe7f6bc6dfba2c60ba6ec24e045696562
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 11 Mar 2021 10:05:04 +0000 (11 10:05 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 16 Mar 2021 20:41:37 +0000 (16 21:41 +0100)
treeea34bc8c6c58cf4d2c44bb85a54e35bc349464af
parent4c8f4ab41c3a057430c789cc7bf3f6dfaa00dc18
mac_via: fix 60Hz VIA1 timer interval

The 60Hz timer is initialised using timer_new_ns() meaning that the timer
interval should be measured in ns, and therefore its period is a thousand
times too short.

Use a define for the 60Hz timer period taking the more precise value as
documented in the Guide To The Macintosh Family Hardware.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <20210311100505.22596-7-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/misc/mac_via.c