memory: fix memory_region_init_rom_device() not initializing ->ops

Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Avi Kivity 2011-08-25 14:56:14 +03:00
parent 89da90b1b4
commit 7bc2b9cd4d

View File

@ -967,6 +967,7 @@ void memory_region_init_rom_device(MemoryRegion *mr,
uint64_t size)
{
memory_region_init(mr, name, size);
mr->ops = ops;
mr->terminates = true;
mr->destructor = memory_region_destructor_rom_device;
mr->ram_addr = qemu_ram_alloc(dev, name, size);