sunxi series are SOCs from Allwinner, including sunxi-4i/5i/6i/7i ... Signed-off-by: liguang <lig.f...@cn.fujitsu.com> --- hw/arm/Makefile.objs | 2 +- hw/arm/sunxi-soc.c | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletions(-) create mode 100644 hw/arm/sunxi-soc.c
diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index 3671b42..3024ccb 100644 --- a/hw/arm/Makefile.objs +++ b/hw/arm/Makefile.objs @@ -4,4 +4,4 @@ obj-y += omap_sx1.o palm.o realview.o spitz.o stellaris.o obj-y += tosa.o versatilepb.o vexpress.o xilinx_zynq.o z2.o obj-y += armv7m.o exynos4210.o pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o -obj-y += omap1.o omap2.o strongarm.o +obj-y += omap1.o omap2.o strongarm.o sunxi-soc.o diff --git a/hw/arm/sunxi-soc.c b/hw/arm/sunxi-soc.c new file mode 100644 index 0000000..f6849eb --- /dev/null +++ b/hw/arm/sunxi-soc.c @@ -0,0 +1,30 @@ +#include "hw/sysbus.h" +#include "hw/devices.h" +#include "hw/boards.h" +#include "hw/arm/arm.h" +#include "sysemu/sysemu.h" + + + +static void sunxi_init(QEMUMachineInitArgs *args) +{ +} + +static QEMUMachine sunxi_machine = { + .name = "sunxi", + .desc = "Allwinner's Soc (sunxi series)", + .init = sunxi_init, +}; + +static void sunxi_machine_init(void) +{ + qemu_register_machine(&sunxi_machine); +} + +machine_init(sunxi_machine_init); + +static void sunxi_register_types(void) +{ +} + +type_init(sunxi_register_types); -- 1.7.2.5