memory: Rename readable flag to romd_mode
commit5f9a5ea1c0a8391033e7d33abd335dd804a1001a
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 7 May 2013 17:04:25 +0000 (7 19:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2013 16:42:46 +0000 (24 18:42 +0200)
treed2c1c997858117b0156b80d54a31280d25c886b3
parent4b81126e3399bfbcc47a4d696902c93401169f72
memory: Rename readable flag to romd_mode

"Readable" is a very unfortunate name for this flag because even a
rom_device region will always be readable from the guest POV. What
differs is the mapping, just like the comments had to explain already.
Also, readable could currently be understood as being a generic region
flag, but it only applies to rom_device regions.

So rename the flag and the function to modify it after the original term
"ROMD" which could also be interpreted as "ROM direct", i.e. ROM mode
with direct access. In any case, the scope of the flag is clearer now.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
include/exec/memory.h
memory.c