cpu: Move AVR target vmsd field from CPUClass to DeviceClass
commitc2cf139d9c2f8f8b86686fe0e94a9daba27195a6
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 17 May 2021 10:51:30 +0000 (17 12:51 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 26 May 2021 22:33:59 +0000 (26 15:33 -0700)
treeb686f121b39352e183751ff94faeacca8531ef65
parent744c72a837a0428f2d5373793e42aba963bf47c6
cpu: Move AVR target vmsd field from CPUClass to DeviceClass

See rationale in previous commit. Targets should use the vmsd field
of DeviceClass, not CPUClass. As migration is not important on the
AVR target, break the migration compatibility and set the DeviceClass
vmsd field. To feel safer, increment the vmstate version.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210517105140.1062037-14-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/avr/cpu.c
target/avr/machine.c