OSDN Git Service

g364fb: add VMStateDescription for G364SysBusState
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 25 Jun 2021 16:35:54 +0000 (17:35 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 2 Jul 2021 15:35:08 +0000 (17:35 +0200)
commit8660df5ea25ea4e6ee94fca43559165fe7610199
tree60dde782dfc37853bc983566fcbb20213c8bda2c
parentd5bfbaca39e9a700cabf4266247c93edeaf846de
g364fb: add VMStateDescription for G364SysBusState

Currently when QEMU attempts to migrate the MIPS magnum machine it crashes due
to a mistake in the g364fb VMStateDescription configuration which expects a
G364SysBusState and not a G364State.

Resolve the issue by adding a new VMStateDescription for G364SysBusState and
embedding the existing vmstate_g364fb VMStateDescription inside it using
VMSTATE_STRUCT.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: 97a3f6ffbba ("g364fb: convert to qdev")
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210625163554.14879-3-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/display/g364fb.c