mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/block: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
64bde0f3e7
commit
2d256e6f65
5 changed files with 17 additions and 13 deletions
|
@ -579,7 +579,7 @@ static int pflash_cfi01_init(SysBusDevice *dev)
|
|||
#endif
|
||||
|
||||
memory_region_init_rom_device(
|
||||
&pfl->mem, NULL,
|
||||
&pfl->mem, OBJECT(dev),
|
||||
pfl->be ? &pflash_cfi01_ops_be : &pflash_cfi01_ops_le, pfl,
|
||||
pfl->name, total_len);
|
||||
vmstate_register_ram(&pfl->mem, DEVICE(pfl));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue