On 3 June 2013 10:40, Paolo Bonzini <pbonz...@redhat.com> wrote: > Il 03/06/2013 11:22, Peter Maydell ha scritto: >> arm11mpcore.c does this: >> sysbus_init_mmio(dev, sysbus_mmio_get_region(s->priv, 0)); >> which I suspect will assert with your patches. > > Thanks for the pointer. All other occurrences of > sys_bus_mmio_get_region are either in non-qdevified OMAP code, or they > do what I said in my patch. > > I'll fix a11mpcore to use an alias.
Why? There is no need to -- this should be a perfectly reasonable use of MemoryRegion*s. If your reference counting code can't deal with it you need to fix the reference counting code. thanks -- PMM