提交 bda254da 编写于 作者: J Jan Kiszka 提交者: Blue Swirl

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: NJan Kiszka <jan.kiszka@web.de>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 4896d74b
...@@ -102,6 +102,7 @@ static void pflash_setup_mappings(pflash_t *pfl) ...@@ -102,6 +102,7 @@ static void pflash_setup_mappings(pflash_t *pfl)
static void pflash_register_memory(pflash_t *pfl, int rom_mode) static void pflash_register_memory(pflash_t *pfl, int rom_mode)
{ {
memory_region_rom_device_set_readable(&pfl->orig_mem, rom_mode); memory_region_rom_device_set_readable(&pfl->orig_mem, rom_mode);
pfl->rom_mode = rom_mode;
} }
static void pflash_timer (void *opaque) static void pflash_timer (void *opaque)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册