lasi: fix RTC migration
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Mar 2023 12:03:10 +0000 (14:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Apr 2023 09:17:35 +0000 (11:17 +0200)
commita64508304edbe51c6004a9af4e75e0e329797079
tree92d443f162368ebe1dcf97f6b4f3660e60a2f28a
parent987b63f24afe027a09b1c549c05a032a477f7e96
lasi: fix RTC migration

Migrate rtc_ref (which only needs to be 32-bit because it is summed to
a 32-bit register), which requires bumping the migration version.
The HPPA machine does not have versioned machine types so it is okay
to block migration to old versions of QEMU.

While at it, drop the write-only field rtc from LasiState.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/lasi.c
include/hw/misc/lasi.h