Skip to content

Commit

Permalink
memory: fix memory_region_init_rom_device() not initializing ->ops
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
avikivity committed Aug 25, 2011
1 parent 89da90b commit 7bc2b9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bc2b9c

Please sign in to comment.