OSDN Git Service

q800: fix mac_via RTC PRAM commands
authorLaurent Vivier <laurent@vivier.eu>
Thu, 19 Dec 2019 20:14:38 +0000 (21:14 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 7 Jan 2020 12:35:53 +0000 (13:35 +0100)
commitb2619c158ab5ab71990de9d514c4e36e178d4fc6
treeae5e736c798c621200181121bc6831b57b1e153d
parentcdbc5c51c8755e4e9ce964fc92ba755e1c71a914
q800: fix mac_via RTC PRAM commands

The command byte is not decoded correctly.

This patch reworks the RTC/PRAM interface and fixes the problem.
It adds a comment before the function to explain how are encoded commands
and some trace-events to ease debugging.

Bug: https://bugs.launchpad.net/qemu/+bug/1856549
Fixes: 6dca62a000 ("hw/m68k: add VIA support")
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20191219201439.84804-2-laurent@vivier.eu>
hw/misc/mac_via.c
hw/misc/trace-events