diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2012-02-04 15:58:02 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-02-11 10:58:09 +0000 |
commit | bda254daf8016ef474afb51122c5c2d6cfc3b80e (patch) | |
tree | 316f0109ca5cda4fa1ed0bf8569e365065dbc1c5 /hw/pflash_cfi02.c | |
parent | 4896d74b844b1845de32c29743fe09e4145f0601 (diff) |
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>
Diffstat (limited to 'hw/pflash_cfi02.c')
-rw-r--r-- | hw/pflash_cfi02.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |