q800: add a block backend to the PRAM
commiteb064db94ccd62f054019f41fb8be3f268463a13
authorLaurent Vivier <laurent@vivier.eu>
Thu, 19 Dec 2019 20:14:39 +0000 (19 21:14 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 7 Jan 2020 12:35:53 +0000 (7 13:35 +0100)
tree1d0fe04ce2fb0dea2eb6a25962a48aef09df8f05
parentb2619c158ab5ab71990de9d514c4e36e178d4fc6
q800: add a block backend to the PRAM

This allows to save and restore the content of the PRAM.
It may be useful if we want to check the configuration or to change it.

The backend is added using mtd interface, for instance:

    ... -drive file=pram.img,format=raw,if=mtd ...

where pram.img is the file where the data will be stored, its size must
be 256 bytes.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20191219201439.84804-3-laurent@vivier.eu>
hw/m68k/q800.c
hw/misc/mac_via.c
include/hw/misc/mac_via.h