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>
This commit is contained in:
parent
4896d74b84
commit
bda254daf8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user