#@TYPE: Machine
#@NAME: ml605-qemu-microblazeel
#@DESCRIPTION: MicroBlaze QEMU machine support ('petalogix-ml605' model)

require conf/machine/include/tune-microblaze.inc
require conf/machine/include/machine-xilinx-default.inc
require conf/machine/include/machine-xilinx-qemu.inc

TUNE_FEATURES_tune-microblaze += "v8.50 barrel-shift reorder pattern-compare divide-hard multiply-high fpu-hard"

MACHINE_FEATURES = ""

USE_VT = ""
SERIAL_CONSOLES ?= "115200;ttyS0"

KERNEL_IMAGETYPE ?= "linux.bin.ub"

# Use the networking setup from qemuarm
MACHINEOVERRIDES_prepend_pn-init-ifupdown = "qemuall:"
FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm"

# This machine is a targeting a QEMU model, runqemu setup:
QB_MEM = "-m 256"
QB_MACHINE = "-machine petalogix-ml605"
QB_OPT_APPEND = "-nographic -serial mon:stdio"
QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@"

