mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
memory: add owner argument to initialization functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5767e4e198
commit
2c9b15cab1
319 changed files with 787 additions and 759 deletions
|
@ -526,14 +526,14 @@ static int fw_cfg_init1(SysBusDevice *dev)
|
|||
{
|
||||
FWCfgState *s = FROM_SYSBUS(FWCfgState, dev);
|
||||
|
||||
memory_region_init_io(&s->ctl_iomem, &fw_cfg_ctl_mem_ops, s,
|
||||
memory_region_init_io(&s->ctl_iomem, NULL, &fw_cfg_ctl_mem_ops, s,
|
||||
"fwcfg.ctl", FW_CFG_SIZE);
|
||||
sysbus_init_mmio(dev, &s->ctl_iomem);
|
||||
memory_region_init_io(&s->data_iomem, &fw_cfg_data_mem_ops, s,
|
||||
memory_region_init_io(&s->data_iomem, NULL, &fw_cfg_data_mem_ops, s,
|
||||
"fwcfg.data", FW_CFG_DATA_SIZE);
|
||||
sysbus_init_mmio(dev, &s->data_iomem);
|
||||
/* In case ctl and data overlap: */
|
||||
memory_region_init_io(&s->comb_iomem, &fw_cfg_comb_mem_ops, s,
|
||||
memory_region_init_io(&s->comb_iomem, NULL, &fw_cfg_comb_mem_ops, s,
|
||||
"fwcfg", FW_CFG_SIZE);
|
||||
|
||||
if (s->ctl_iobase + 1 == s->data_iobase) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue