summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYash Shinde <Yash.Shinde@windriver.com>2025-02-03 01:15:19 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-05 12:49:56 +0000
commit882eb41e177758999407a50831f97e3e6fafee20 (patch)
treedd889547f1fdb4bbde856d23f8e7caa3c114d567
parent69b2211f5811dad2e61f8ee83a6b80f215957514 (diff)
downloadpoky-882eb41e177758999407a50831f97e3e6fafee20.tar.gz
qemuriscv: Enable Sv39 memory address scheme by default
Currently, GCC Asan supports only Sv39 on RISC-V 64 due to custom allocator configurations optimized for large allocations. These configurations are incompatible with larger address spaces like Sv48/Sv57. This fix enables RISC-V 64 configuration for RVA22S64 profile(which has sv39 mode and other extensions) by default when running `runqemu nographic`, eliminating the need for manual configuration via command line flags (`qemuparams="-cpu rv64, sv39=true"`). Fixes [YOCTO #15691] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15691 Reference: https://github.com/qemu/qemu/commit/af651969eb23ecf018bcaa8e0761b58425de550c https://git.openembedded.org/openembedded-core/commit/?id=4b4450ff695ef73bf7a2437e142d2e0730d6a547 (From OE-Core rev: 5e749a2576698e390392b5d522a2dc5fdc9556cd) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/machine/include/riscv/qemuriscv.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc
index d01d988eee..65cbfd66ee 100644
--- a/meta/conf/machine/include/riscv/qemuriscv.inc
+++ b/meta/conf/machine/include/riscv/qemuriscv.inc
@@ -27,6 +27,7 @@ UBOOT_ENTRYPOINT:riscv64 = "0x80200000"
27# qemuboot options 27# qemuboot options
28QB_SMP ?= "-smp 4" 28QB_SMP ?= "-smp 4"
29QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi" 29QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
30QB_CPU:riscv64 ?= "-cpu rva22s64"
30QB_MACHINE = "-machine virt" 31QB_MACHINE = "-machine virt"
31QB_DEFAULT_BIOS = "fw_jump.elf" 32QB_DEFAULT_BIOS = "fw_jump.elf"
32QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" 33QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"