projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4896d74
)
cfi02: Fix lazy ROMD switching - once again
author
Jan Kiszka
<jan.kiszka@web.de>
Sat, 4 Feb 2012 14:58:02 +0000
(15:58 +0100)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 11 Feb 2012 10:58:09 +0000
(10:58 +0000)
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>
hw/pflash_cfi02.c
patch
|
blob
|
history
diff --git
a/hw/pflash_cfi02.c
b/hw/pflash_cfi02.c
index a9e88b9b3c837b80a7852db79272411ba99c2860..2ca0fd4560cfed08bd8f76d5c9b996832966ee12 100644
(file)
--- 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)