Adapt network run scripts for recent Qemu (3.1)

-netdev and -device should work with Qemu versions >= 2.5 at least but
3.0 dropped support for legacy -net completely.
This commit is contained in:
Christian Helmuth
2019-02-11 15:34:30 +01:00
committed by Norman Feske
parent 00fa48a886
commit abdd1d7715
16 changed files with 132 additions and 52 deletions

View File

@@ -101,9 +101,6 @@ proc run_power_on { } {
if {[have_spec vpb926]} { append qemu_args " -M versatilepb -m 128 " }
if {[have_spec zynq_qemu]} { append qemu_args " -M xilinx-zynq-a9 -cpu cortex-a9 -m 256 " }
# add devices for specific platforms
if {[have_spec zynq] && [have_spec cadence_gem]} { append qemu_args " -net nic,model=cadence_gem" }
# on x86, we support booting via pxe or iso/disk image
if {[have_spec x86]} {
if {![regexp -- {-m} $qemu_args dummy]} {