aboutsummaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-03-24 14:54:43 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-04-13 12:06:59 +0200
commit62271205bcfaee440d06c06060ee79dac657caff (patch)
treea213a2671527ad6bb58ca83fa3ad52eaed12fc55 /disas.c
parent50fab4cc672233fee22fff2cf51543af57602c7d (diff)
downloadqemu-62271205bcfaee440d06c06060ee79dac657caff.zip
qemu-62271205bcfaee440d06c06060ee79dac657caff.tar.gz
qemu-62271205bcfaee440d06c06060ee79dac657caff.tar.bz2
hw/isa/piix4: Migrate Reset Control Register
When adding the Reset register in commit 5790b757cfb we forgot to migrate it. While it is possible a VM using the PIIX4 is migrated just after requesting a system shutdown, it is very unlikely. However when restoring a migrated VM, we might have the RCR bit #4 set on the stack and when the VM resume it directly shutdowns. Add a post_load() migration handler and set the default RCR value to 0 for earlier versions, assuming the VM was not going to shutdown before migration. Fixes: 5790b757cfb ("piix4: Add the Reset Control Register") Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20210324200334.729899-1-f4bug@amsat.org>
Diffstat (limited to 'disas.c')
0 files changed, 0 insertions, 0 deletions