From 68961fd252fc6bb36715376e92df3ef9b2e887d8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 22 Feb 2022 12:51:27 +0000 Subject: [PATCH] make.sh: riscv64: Emulate SiFive U54 CPU In QEMU, some processes seem to freeze/deadlock in their futex handling which is causing the whole build process to block. Changing the emulated CPU seems to work around these problems. Signed-off-by: Michael Tremer --- make.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make.sh b/make.sh index 522fe84011..1fb14c9eaa 100755 --- a/make.sh +++ b/make.sh @@ -793,6 +793,11 @@ qemu_environ() { arm*) QEMU_CPU="${QEMU_CPU:-cortex-a9}" + env="${env} QEMU_CPU=${QEMU_CPU}" + ;; + riscv64) + QEMU_CPU="${QEMU_CPU:-sifive-u54}" + env="${env} QEMU_CPU=${QEMU_CPU}" ;; esac -- 2.39.2