mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
b2619c158a
commit
eb064db94c
3 changed files with 74 additions and 0 deletions
|
@ -81,6 +81,8 @@ typedef struct MOS6522Q800VIA2State {
|
|||
typedef struct MacVIAState {
|
||||
SysBusDevice busdev;
|
||||
|
||||
VMChangeStateEntry *vmstate;
|
||||
|
||||
/* MMIO */
|
||||
MemoryRegion mmio;
|
||||
MemoryRegion via1mem;
|
||||
|
@ -100,6 +102,7 @@ typedef struct MacVIAState {
|
|||
uint8_t cmd;
|
||||
int wprotect;
|
||||
int alt;
|
||||
BlockBackend *blk;
|
||||
|
||||
/* ADB */
|
||||
ADBBusState adb_bus;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue