diff options
author | Avi Kivity <avi@redhat.com> | 2011-08-26 00:35:15 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-08-26 00:35:15 +0300 |
commit | 75f5941cb583712b37a557ce61b95eeba91f520e (patch) | |
tree | 8a6f35f50b7f39607b79c4a4c208f4d3b362a083 /memory.c | |
parent | 7bc2b9cd4da5020b9adff3b3c8fdc04d6bcde79a (diff) |
memory: add opaque parameter to memory_region_init_rom_device()
The MemoryRegionOps callbacks expect it.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r-- | memory.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -962,12 +962,14 @@ void memory_region_init_alias(MemoryRegion *mr, void memory_region_init_rom_device(MemoryRegion *mr, const MemoryRegionOps *ops, + void *opaque, DeviceState *dev, const char *name, uint64_t size) { memory_region_init(mr, name, size); mr->ops = ops; + mr->opaque = opaque; mr->terminates = true; mr->destructor = memory_region_destructor_rom_device; mr->ram_addr = qemu_ram_alloc(dev, name, size); |