From patchwork Tue Jun 27 14:32:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 696841 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3809889wrm; Tue, 27 Jun 2023 07:33:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WuVTJH0kYTBwdsWFpHaHvstckHMk66asNSbBRhRMY7Wbj3ypEE5EgBg2n0Q+UdrD2xYI7 X-Received: by 2002:a05:620a:2942:b0:763:bbd0:2959 with SMTP id n2-20020a05620a294200b00763bbd02959mr25021764qkp.33.1687876398509; Tue, 27 Jun 2023 07:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687876398; cv=none; d=google.com; s=arc-20160816; b=g/9A0Q4k73+XWuWiUChoGPEpzGQrJ7LIo/uTt73VseEWyTUYRdm7TCSZoGLN5ikQYE PF6N89ejVx5TA6KVmakjXIpMmGuAs8iAIORiwpS9w0eOuaDxwPq7ktHyxNAC8eTDozIr Clf5o1SB+PCwdob6GtoypjSMH64gOxI4LEClkeakiMGVerfmIUv+hAh+jW02HvfzdBWb LiG4bN+bSgkTK1zSd8PaiaXMWC7nd7oCS+CbRii7PCBrHf9C6HNm0ceY0xRpftUYOZRc zgV7pGOPS1YH2Ja9nuwfo26jdl6HIuJnCHILJbpo9r6pUTddhgvPLFmFXcnuDlepE0fa XOUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=yXF/f9t11zAakpvjOX4nDrtnLXHNdzigFTidlmb+aUY=; fh=JohOF+S5eXEMRaC+pciRqiqS+AwiH9W3q8SoiUUnOM8=; b=I7ZFA3doP/3yXjRbMtLBf8DUmCYH4MmNoDUDFE0fXUObbMAkpvE+NKqyo6rACgpGtM fVjgSZ6yL7kuclr+/FtcZQwjmgHRNg0dc2O0VnDQG7XdylwAxkJCOkBzxLSyURASMt0g rMONCkfkRzNprTB9Q+gFFpH3sG1Gk8x7Tp4GcYD5vThSvN4Vyrr4AvXPWU/rAnqKJsGd DdIACGf7OhxS0gRa8Uf9TfyOjnsbdv/M1v06Dzv1bu5Db0OvSy76WtM2av02Q6rkdjP4 M2FtWrCG05ypft2ixFeVr8tuR4tSFTENnV5zdCMUu30qp/T/wnhBhfHjFGHpfdR2DeiO dHWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LQHHK8u4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z23-20020a05620a08d700b00763b2db4becsi3164834qkz.197.2023.06.27.07.33.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Jun 2023 07:33:18 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LQHHK8u4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qE9kK-00041A-5M; Tue, 27 Jun 2023 10:32:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qE9kI-00040e-PA for qemu-devel@nongnu.org; Tue, 27 Jun 2023 10:32:42 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qE9kH-0003aL-4V for qemu-devel@nongnu.org; Tue, 27 Jun 2023 10:32:42 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-98e011f45ffso333612166b.3 for ; Tue, 27 Jun 2023 07:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687876359; x=1690468359; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yXF/f9t11zAakpvjOX4nDrtnLXHNdzigFTidlmb+aUY=; b=LQHHK8u4R1ctyBaBMB8vnFgcgXerPU+61dRqHkMPCrIJYghNCth9RtJiDhuqP0I6eJ nTPSIQJx3Yat0uRIw0Tm4NJ/QVDVlM/u1KLdrhfOQIyuhj2WlKRGcoBmfx7QC8zM0rgH r9M6kEsK+SQyYbhJAgSfzprjw1vaxgE03d/H1pC3egtt+OOnyyr1mrWmJyVge+Rrlb2C THSCwElliI4If6Hr0O10e9tEUHXoJywMR0DITYD8wExJMLLaIDkANxocfYmxr5UMha9U LOMiggZiodPypnqSbzghbZKEgm2VxiJIT2PlK4OHDEzBvaZ3cg3Ub8hEll9oFsENcXh4 SNYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687876359; x=1690468359; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yXF/f9t11zAakpvjOX4nDrtnLXHNdzigFTidlmb+aUY=; b=N1wrLS8Da10nrnKAsrNDqtAK9sxaVOmh5Q82zbm+GQCikmbWhRA0FmjvOXhJWll22j 0iYw6BqFPDIO/KhcrqaHemxR689OiD1/+PsuGlisVITT/moSDF/A0yKd915hobZgNTHD HY6sVWJbACYnQtMmLkwc03QinLnvPyCdFca82151ON/tjV2PzAqoYmy84GHkTOWUHkxB BOF+G4e/sWN+3IQCJRkLraAg81Qekucye6f0enoPr8NvADUYsbwdYuVMKUBctH0Alcsk xJWo7ACPaViSoKHEmDlLV8PmdJ1+NDuu84i+y8jukFOzKbp0PIST+grlciqlGOqead5l faUA== X-Gm-Message-State: AC+VfDywT1GnQI87pikq+vUOU7KkTWqkLpiu7zLpHLANHcQhdGe+r1ey fGKHtAHyc+X2lSZB+CYNGd9wN0fqdJVw2I8SqG0= X-Received: by 2002:a17:907:a061:b0:991:fd87:169e with SMTP id ia1-20020a170907a06100b00991fd87169emr2306237ejc.8.1687876359432; Tue, 27 Jun 2023 07:32:39 -0700 (PDT) Received: from m1x-phil.lan ([176.187.199.204]) by smtp.gmail.com with ESMTPSA id re3-20020a170906d8c300b00977ca5de275sm4690670ejb.13.2023.06.27.07.32.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Jun 2023 07:32:38 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alistair Francis , Paolo Bonzini , Weiwei Li , Palmer Dabbelt , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Bin Meng , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Daniel Henrique Barboza , Liu Zhiwei , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-riscv@nongnu.org Subject: [PATCH 0/2] target/riscv: Only build qemu-system-riscv$$ on rv$$ host Date: Tue, 27 Jun 2023 16:32:33 +0200 Message-Id: <20230627143235.29947-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=philmd@linaro.org; helo=mail-ej1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Per Anup Patel in [*]: > Currently, we only support running rv64 guest on rv64 host > and rv32 guest on rv32 host. > > In the future, we might support running rv32 guest on rv64 > host but as of now we don't see a strong push for it. Therefore, when only using the KVM accelerator it is pointless to build qemu-system-riscv32 on a rv64 host (or qemu-system-riscv64 on a rv32 host). Restrict meson to only build the correct binary, avoiding to waste ressources building unusable code. [*] https://lore.kernel.org/qemu-devel/CAAhSdy2JeRHeeoEc1XKQhPO3aDz4YKeyQsPT4S8yKJcYTA+AiQ@mail.gmail.com/ Based-on: <20230626232007.8933-1-philmd@linaro.org> "target/riscv: Allow building without TCG (KVM-only so far)" https://lore.kernel.org/qemu-devel/20230626232007.8933-1-philmd@linaro.org/ Philippe Mathieu-Daudé (2): target/riscv: Only unify 'riscv32/64' -> 'riscv' for host cpu in meson target/riscv: Only build KVM guest with same wordsize as host meson.build | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis