mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
sysbus: remove sysbus_init_mmio_cb()
This problem with this function is that it is not reversible - it is impossible to know where things are registered and unregister them exactly. As there are no more users, we can remove it. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
cd0fa1e6d3
commit
c5b3572fc6
2 changed files with 0 additions and 14 deletions
12
hw/sysbus.c
12
hw/sysbus.c
|
@ -107,18 +107,6 @@ void sysbus_init_mmio(SysBusDevice *dev, target_phys_addr_t size,
|
|||
dev->mmio[n].iofunc = iofunc;
|
||||
}
|
||||
|
||||
void sysbus_init_mmio_cb(SysBusDevice *dev, target_phys_addr_t size,
|
||||
mmio_mapfunc cb)
|
||||
{
|
||||
int n;
|
||||
|
||||
assert(dev->num_mmio < QDEV_MAX_MMIO);
|
||||
n = dev->num_mmio++;
|
||||
dev->mmio[n].addr = -1;
|
||||
dev->mmio[n].size = size;
|
||||
dev->mmio[n].cb = cb;
|
||||
}
|
||||
|
||||
void sysbus_init_mmio_cb2(SysBusDevice *dev,
|
||||
mmio_mapfunc cb, mmio_mapfunc unmap)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue