diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2023-08-03 16:24:30 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-08-03 16:24:30 +0200 |
commit | a064ed4bb3e4d384ed4e08ac0a884da5afc95b4a (patch) | |
tree | 1a9d9fbe54eef8df9ad88860edb1c1a5080b478e /target | |
parent | 95e1196f4d37f3739ba2a9dbaae76f02b312debf (diff) |
qemu-system-arc: use virtio for networking
Diffstat (limited to 'target')
-rw-r--r-- | target/arc/Makefile | 1 | ||||
-rw-r--r-- | target/arc/systems/qemu-arc | 2 | ||||
-rw-r--r-- | target/config/Config.in.qemuopts | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/target/arc/Makefile b/target/arc/Makefile index 702debfce..8eed37760 100644 --- a/target/arc/Makefile +++ b/target/arc/Makefile @@ -12,6 +12,7 @@ KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL) endif QEMU_ARGS:=-monitor none -serial stdio +QEMU_ARGS+=-netdev user,id=eth0 -device virtio-net-device,netdev=eth0 QEMU_ARGS+=${ADK_QEMU_ARGS} ifeq ($(ADK_TARGET_CPU_ARC_ARC700),y) diff --git a/target/arc/systems/qemu-arc b/target/arc/systems/qemu-arc index ac6b2829f..982534519 100644 --- a/target/arc/systems/qemu-arc +++ b/target/arc/systems/qemu-arc @@ -2,6 +2,8 @@ config ADK_TARGET_SYSTEM_QEMU_ARC bool "Qemu Emulator" select ADK_TARGET_QEMU select ADK_TARGET_KERNEL_WITH_COMPRESSION + select ADK_TARGET_CPU_ARC_ARCHS + select ADK_TARGET_LITTLE_ENDIAN help Support for QEMU ARC Emulator. diff --git a/target/config/Config.in.qemuopts b/target/config/Config.in.qemuopts index f24af9a6b..50e314eab 100644 --- a/target/config/Config.in.qemuopts +++ b/target/config/Config.in.qemuopts @@ -41,6 +41,7 @@ depends on ADK_TARGET_QEMU && (ADK_TARGET_SYSTEM_QEMU_X86_64 \ || ADK_TARGET_SYSTEM_QEMU_CSKY \ || ADK_TARGET_SYSTEM_QEMU_X86 \ || ADK_TARGET_SYSTEM_QEMU_AARCH64 \ + || ADK_TARGET_SYSTEM_QEMU_ARC \ || ADK_TARGET_SYSTEM_QEMU_SPARC64) choice @@ -94,12 +95,14 @@ choice prompt "Qemu Emulation using VirtIO drivers" depends on ADK_TARGET_SYSTEM_QEMU_SPARC64 || \ ADK_TARGET_SYSTEM_QEMU_AARCH64 || \ + ADK_TARGET_SYSTEM_QEMU_ARC || \ ADK_TARGET_SYSTEM_QEMU_RISCV32 || \ ADK_TARGET_SYSTEM_QEMU_RISCV64 || \ ADK_TARGET_SYSTEM_QEMU_CSKY || \ ADK_TARGET_SYSTEM_QEMU_X86 || \ ADK_TARGET_SYSTEM_QEMU_X86_64 default ADK_TARGET_QEMU_WITH_VIRTIO if ADK_TARGET_SYSTEM_QEMU_AARCH64 +default ADK_TARGET_QEMU_WITH_VIRTIO if ADK_TARGET_SYSTEM_QEMU_ARC default ADK_TARGET_QEMU_WITH_VIRTIO if ADK_TARGET_SYSTEM_QEMU_CSKY default ADK_TARGET_QEMU_WITH_VIRTIO if ADK_TARGET_SYSTEM_QEMU_RISCV32 default ADK_TARGET_QEMU_WITH_VIRTIO if ADK_TARGET_SYSTEM_QEMU_RISCV64 |