On Wed, Sep 07, 2016 at 03:27:46PM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2016-09-07 at 11:59 +1000, David Gibson wrote: > > > > That does suggest an alternative approach though. You could remove > > XScomDevice entirely from QOM existence, and just expose the xscom > > address space globally, much like address_space_memory. The > > individual devices could just register their own subregions within > > it. > > > > I'm not sure if the latter is a good idea, though. > > Not globally, per chip.
Right, that's probably better. Not immediately sure how the scomdevice would get hold of its chip's scom AS, but we can probably figure out something. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature