qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] q800: fix and improve RTC/PRAM interface
@ 2019-12-19 20:14 Laurent Vivier
  2019-12-19 20:14 ` [PATCH 1/2] q800: fix mac_via RTC PRAM commands Laurent Vivier
  2019-12-19 20:14 ` [PATCH 2/2] q800: add a block backend to the PRAM Laurent Vivier
  0 siblings, 2 replies; 4+ messages in thread
From: Laurent Vivier @ 2019-12-19 20:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: Philippe Mathieu-Daudé, Mark Cave-Ayland, Laurent Vivier

A bug has been reported on launchpad about an error
reported by cc:

  qemu-4.2.0/hw/misc/mac_via.c:467:27: style: Expression is
  always false because 'else if' condition matches previous
  condition at line 463. [multiCondition]

  https://bugs.launchpad.net/qemu/+bug/1856549

In fact, the PRAM interface has not really been tested and
has several problems that needed to be fixed.

This series makes a cleanup in this part of code and
fix existing problems.

It also adds some trace-events that helped to debug the
numerous issues and a backend file to allow to save and
restore the content of the PRAM.

This has been tested by playing with the /dev/nvram interface
in the guest, checking we can read what we have written, and
we can read and write in the file on host and read and write
the same data in the guest /dev/nvram.

Laurent Vivier (2):
  q800: fix mac_via RTC PRAM commands
  q800: add a block backend to the PRAM

 hw/m68k/q800.c            |   6 +
 hw/misc/mac_via.c         | 339 ++++++++++++++++++++++++++++----------
 hw/misc/trace-events      |  19 +++
 include/hw/misc/mac_via.h |   3 +
 4 files changed, 284 insertions(+), 83 deletions(-)

-- 
2.24.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-22 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19 20:14 [PATCH 0/2] q800: fix and improve RTC/PRAM interface Laurent Vivier
2019-12-19 20:14 ` [PATCH 1/2] q800: fix mac_via RTC PRAM commands Laurent Vivier
2019-12-22 11:07   ` Mark Cave-Ayland
2019-12-19 20:14 ` [PATCH 2/2] q800: add a block backend to the PRAM Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).