On Tue, 2015-11-24 at 14:20 +1100, David Gibson wrote: > Hmm.. I'm thinking it probably makes sense to unify the representation > of "chip" and "xscom" since there's a 1:1 correspondance. To be > QOMishly correct, I think the right way would be a SysBusDevice for > each chip, implementing the xscom MMIOs, then an array of link properties > under the Machine object to find the right scoms by chip id.
But there is more than xscom's under each chip ... there's PHBs, LPC controllers (though those are currently under XSCOM) and possibly other completely unrelated things... To be honest I've never been a big fan of that whole QOM business and am a bit confused as to how that would all work together. Cheers, Ben.