From patchwork Tue Feb 22 12:51:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5265 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4K2zbW59HLz3xgm for ; Tue, 22 Feb 2022 12:52:39 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4K2zZv3G6Yz5c5; Tue, 22 Feb 2022 12:52:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4K2zZv0kVnz32MC; Tue, 22 Feb 2022 12:52:07 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4K2zZj3ppFz32Mf for ; Tue, 22 Feb 2022 12:51:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4K2zZj1jWHz5SZ; Tue, 22 Feb 2022 12:51:57 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1645534317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0JuyS1PolW+9MWEsZ305rsvpy47PnPYMo3ls4BFJXvM=; b=Vz+QgWi0NTb9Wfu3/uEfsj3Mt4cIQmoiMhN06xXzDl9sthI15g2XnSvxArjIHj6iyvoEc6 Pez/4GQp+tN45ADA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1645534317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0JuyS1PolW+9MWEsZ305rsvpy47PnPYMo3ls4BFJXvM=; b=QxPDU9rKPr7fft1MWbr+b1yNm/9R3YNqHUESwMpTPJW4+mFlOWW+8HxPk6YrkRx7k0uCKS kDnO3Q61a0vZ6Fa5rHXhrQ93SV5lz/U/verjKv5W1DcQbx0dx8/Tjq5wMcy85qGCPiCDhh RAMnr7tggZYox0kmRhUJSfid4uLAJi2XXxEWA7ACxRwrCBMWhM5ifdsSR4ZIaOfRBsOyP3 OwhJlQoOHmF7blJ9mhsAgpKewxJdgnvKO7AO3/H9pF+EXXvmr6gIu1Ag1omt/2JVzhyxqF tzEA7yTC+XpdwS8lYsop1TYPb5dJ+RhurYaArsC2HnBmkC+sXCEJWeyQ3dCDew== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 42/50] make.sh: riscv64: Emulate SiFive U54 CPU Date: Tue, 22 Feb 2022 12:51:27 +0000 Message-Id: <20220222125135.1211290-43-michael.tremer@ipfire.org> In-Reply-To: <20220222125135.1211290-1-michael.tremer@ipfire.org> References: <20220222125135.1211290-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 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