memory: fix rom_device I/O mode
authorAvi Kivity <avi@redhat.com>
Mon, 29 Aug 2011 06:12:49 +0000 (09:12 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 29 Aug 2011 08:52:09 +0000 (11:52 +0300)
commitc0551e7a5157a773467c26fde9dfcda5f0703942
treeb935b9b4b5031423b499b7c7c249177eee3e43f8
parent4723d2a0f9dbf6a065c8dff1d068c05fcd27676d
memory: fix rom_device I/O mode

When adding a rom_device in I/O mode, we incorrectly masked off the low
bits, resulting in a pure RAM map.  Fix my masking off the high bits and
IO_MEM_ROMD, yielding a pure I/O map.

Signed-off-by: Avi Kivity <avi@redhat.com>
memory.c