diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-30 14:03:10 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-04-20 11:17:35 +0200 |
commit | a64508304edbe51c6004a9af4e75e0e329797079 (patch) | |
tree | 92d443f162368ebe1dcf97f6b4f3660e60a2f28a /include | |
parent | 987b63f24afe027a09b1c549c05a032a477f7e96 (diff) | |
download | qemu-a64508304edbe51c6004a9af4e75e0e329797079.zip qemu-a64508304edbe51c6004a9af4e75e0e329797079.tar.gz qemu-a64508304edbe51c6004a9af4e75e0e329797079.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/misc/lasi.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/hw/misc/lasi.h b/include/hw/misc/lasi.h index ecc7065..0a8c735 100644 --- a/include/hw/misc/lasi.h +++ b/include/hw/misc/lasi.h @@ -69,8 +69,7 @@ struct LasiState { uint32_t errlog; uint32_t amr; - uint32_t rtc; - time_t rtc_ref; + uint32_t rtc_ref; MemoryRegion this_mem; }; |