OSDN Git Service

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)
commitb5fe14cc7efa4e3ef58f591728e69203287a9de4
treeb935b9b4b5031423b499b7c7c249177eee3e43f8
parent75f5941cb583712b37a557ce61b95eeba91f520e
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