aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-08-26 00:35:15 +0300
committerAvi Kivity <avi@redhat.com>2011-08-26 00:35:15 +0300
commit75f5941cb583712b37a557ce61b95eeba91f520e (patch)
tree8a6f35f50b7f39607b79c4a4c208f4d3b362a083 /memory.c
parent7bc2b9cd4da5020b9adff3b3c8fdc04d6bcde79a (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/memory.c b/memory.c
index b91c5da7b5..1491a396ec 100644
--- a/memory.c
+++ b/memory.c
@@ -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);