Browse Source

dubhe: Updated config for QEMU B extension

Updated the config for starfive-dubhe so that the runqemu wrapper can
run without any B extension issues.

Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
Jun Yuan Tan 2 years ago
parent
commit
0fb879b6fa
1 changed files with 4 additions and 2 deletions
  1. 4 2
      conf/machine/starfive-dubhe.conf

+ 4 - 2
conf/machine/starfive-dubhe.conf

@@ -5,12 +5,12 @@
 
 #require conf/machine/include/qemu.inc
 # qemuboot options
-EXTRA_IMAGEDEPENDS += " qemu-helper-native "
+EXTRA_IMAGEDEPENDS:append = " qemu-helper-native"
 IMAGE_CLASSES += " qemuboot "
 QB_MACHINE = "-machine virt"
 QB_DEFAULT_KERNEL = "Image-initramfs-starfive-dubhe.bin"
 QB_DEFAULT_BIOS = "fw_payload.bin"
-QB_CPU = "-cpu rv64,x-h=true"
+QB_CPU = "-cpu rv64,x-h=true,x-b=true"
 QB_DEFAULT_FSTYPE = "cpio.gz"
 SERIAL_CONSOLES = "115200;ttyS0"
 QB_SYSTEM_NAME = "qemu-system-riscv64"
@@ -33,6 +33,8 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-starfive-dev"
 RISCV_SBI_PLAT = "generic"
 RISCV_SBI_PAYLOAD = "Image-initramfs-starfive-dubhe.bin"
 
+QEMU_EXTRAOPTIONS:riscv64 = " -cpu rv64,x-b=true"
+
 GLIBCVERSION = "2.35"
 #
 ###IMAGE_FSTYPES += "wic.gz wic.bmap ext4 cpio"