mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-04 05:30:31 -07:00
memory: fix memory_region_init_rom_device() not initializing ->ops
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
89da90b1b4
commit
7bc2b9cd4d
1 changed files with 1 additions and 0 deletions
1
memory.c
1
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue