mac_via: fix rtc command decoding from PRAM addresses 0x0 to 0xf
commitce47d531c33c35eca985f2dffc340c09433690fa
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 21 Jun 2023 08:53:52 +0000 (21 09:53 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 22 Jun 2023 07:30:44 +0000 (22 09:30 +0200)
tree828f71f756d46e1f3c648ee34d29bdab56cd6a4c
parent7a1f3acb3f41a6bc896c1d7d1749336c21eb8cee
mac_via: fix rtc command decoding from PRAM addresses 0x0 to 0xf

A comparison between the rtc command table included in the comment and the code
itself shows that the decoding for PRAM addresses 0x0 to 0xf is being done on
the raw command, and not the shifted version held in value.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20230621085353.113233-24-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/misc/mac_via.c