PPC: e500: Support dynamically spawned sysbus devices
authorAlexander Graf <agraf@suse.de>
Tue, 1 Jul 2014 14:27:09 +0000 (16:27 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 4 Nov 2014 22:26:14 +0000 (23:26 +0100)
commitf70873438d40ccda3d1614ec18a141aad5da2778
tree6ca9129c3c51f6021956bfc0038c599ad5e7404f
parent7634fe3c273ca2f2eb992b3b6bb7796b85558377
PPC: e500: Support dynamically spawned sysbus devices

For e500 our approach to supporting dynamically spawned sysbus devices is to
create a simple bus from the guest's point of view within which we map those
devices dynamically.

We allocate memory regions always within the "platform" hole in address
space and map IRQs to predetermined IRQ lines that are reserved for platform
device usage.

This maps really nicely into device tree logic, so we can just tell the
guest about our virtual simple bus in device tree as well.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/e500.c
hw/ppc/e500.h
hw/ppc/e500plat.c