aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-08-25 14:56:14 +0300
committerAvi Kivity <avi@redhat.com>2011-08-25 14:56:14 +0300
commit7bc2b9cd4da5020b9adff3b3c8fdc04d6bcde79a (patch)
tree9d1a2b04f1d988c8e993e972f00966a1813d3781 /memory.c
parent89da90b1b4acf24a9a3f2fd197b1bdf69ab24e72 (diff)
downloadqemu-7bc2b9cd4da5020b9adff3b3c8fdc04d6bcde79a.zip
qemu-7bc2b9cd4da5020b9adff3b3c8fdc04d6bcde79a.tar.gz
qemu-7bc2b9cd4da5020b9adff3b3c8fdc04d6bcde79a.tar.bz2
memory: fix memory_region_init_rom_device() not initializing ->ops
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/memory.c b/memory.c
index 8e9ac46..b91c5da 100644
--- a/memory.c
+++ b/memory.c
@@ -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);