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 <jan.kiszka@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
master
Jan Kiszka 2012-02-04 15:58:02 +01:00 committed by Blue Swirl
parent 4896d74b84
commit bda254daf8
1 changed files with 1 additions and 0 deletions

View 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)