1#@TYPE: Machine
2#@NAME: QEMU PPC machine
3#@DESCRIPTION: Machine configuration for running a PPC system on QEMU
4
5require conf/machine/include/qemu.inc
6require conf/machine/include/tune-ppc7400.inc
7
8TARGET_CC_KERNEL_ARCH = "-mno-spe"
9
10KERNEL_IMAGETYPE = "vmlinux"
11
12SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
13
14# For runqemu
15QB_SYSTEM_NAME = "qemu-system-ppc"
16QB_MACHINE = "-machine mac99"
17QB_CPU = "-cpu G4"
18QB_KERNEL_CMDLINE_APPEND = "console=tty console=ttyS0"
19QB_OPT_APPEND = "-usb -device usb-tablet"
20# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
21QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
22QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
23