[42/50] make.sh: riscv64: Emulate SiFive U54 CPU

Message ID 20220222125135.1211290-43-michael.tremer@ipfire.org
State Accepted
Commit 68961fd252fc6bb36715376e92df3ef9b2e887d8
Headers
Series [01/50] expat: Update to version 2.4.6 - Security/CVE fixes |

Commit Message

Michael Tremer Feb. 22, 2022, 12:51 p.m. UTC
  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 <michael.tremer@ipfire.org>
---
 make.sh | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/make.sh b/make.sh
index 522fe8401..1fb14c9ea 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