diff options
author | Avi Kivity <avi@redhat.com> | 2011-08-25 14:56:14 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-08-25 14:56:14 +0300 |
commit | 7bc2b9cd4da5020b9adff3b3c8fdc04d6bcde79a (patch) | |
tree | 9d1a2b04f1d988c8e993e972f00966a1813d3781 | |
parent | 89da90b1b4acf24a9a3f2fd197b1bdf69ab24e72 (diff) |
memory: fix memory_region_init_rom_device() not initializing ->ops
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |