]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cfi02: Fix lazy ROMD switching - once again
authorJan Kiszka <jan.kiszka@web.de>
Sat, 4 Feb 2012 14:58:02 +0000 (15:58 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 11 Feb 2012 10:58:09 +0000 (10:58 +0000)
The conversion to memory regions broke lazy ROMD switching by forgetting
to update the rom_mode state variable.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pflash_cfi02.c

index a9e88b9b3c837b80a7852db79272411ba99c2860..2ca0fd4560cfed08bd8f76d5c9b996832966ee12 100644 (file)
@@ -102,6 +102,7 @@ static void pflash_setup_mappings(pflash_t *pfl)
 static void pflash_register_memory(pflash_t *pfl, int rom_mode)
 {
     memory_region_rom_device_set_readable(&pfl->orig_mem, rom_mode);
+    pfl->rom_mode = rom_mode;
 }
 
 static void pflash_timer (void *opaque)