From bda254daf8016ef474afb51122c5c2d6cfc3b80e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sat, 4 Feb 2012 15:58:02 +0100 Subject: [PATCH] cfi02: Fix lazy ROMD switching - once again The conversion to memory regions broke lazy ROMD switching by forgetting to update the rom_mode state variable. Signed-off-by: Jan Kiszka Signed-off-by: Blue Swirl --- hw/pflash_cfi02.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/pflash_cfi02.c b/hw/pflash_cfi02.c index a9e88b9b3c..2ca0fd4560 100644 --- a/hw/pflash_cfi02.c +++ b/hw/pflash_cfi02.c @@ -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) -- GitLab