memory: Fix memory_region_get_ram_ptr for ROM devices
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 29 Aug 2011 22:38:24 +0000 (00:38 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 30 Aug 2011 08:20:18 +0000 (11:20 +0300)
commit5a3b4a21d9a02828fdca9ecfdda57716b6896ab7
tree6bfb839c497fe2add3d246bffc8b078114f5e552
parent615b32541696d3e8518bbe6f243dd2bf94c7d5f2
memory: Fix memory_region_get_ram_ptr for ROM devices

Mask out the sub-page bits that are used by ROM device for storing the
io-index and the IO_MEM_ROMD flag.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
memory.c