Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2027724rwd; Fri, 26 May 2023 00:05:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4aT7Z5d8jIGpssm676SYCNR86HNGrXAnLZfGvDbc9RjwFVBw6aq7O7+WG2M9jcOMUupYfd X-Received: by 2002:a17:902:d2d0:b0:1ac:61ad:d6bd with SMTP id n16-20020a170902d2d000b001ac61add6bdmr1837256plc.65.1685084742361; Fri, 26 May 2023 00:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685084742; cv=none; d=google.com; s=arc-20160816; b=D1/0zFWw+lgW+TfpRG6xY50giRBgI/ILO2aDXjsxKsBmWig47U9xH8803o4yRUlh8P Z562o7k5CGaUwSiVC6jmbWARsQUd7e+upF8VGBKIbjLwCM3tCm3GcvrVcG0SCrgEtfW/ iCzN0RTDEoLBeWKX4832YDe9uK7EoJrKiA8PlzN1V5uI4Zg2FrIIwWCqgsMiUx+JhqAl h/KMngTIXsoMtSz4NQHLpEsbis6fD+ac+HXnsvvgNX+wa07ytqYKMC/CpCsTpcOQTexZ XpueRzQ5PnZ1mbRr9HWqTkYI8hoqxbSxzr8XOtg9+ygxwfM6sMwppZ7YN4tsjEwtqKQ7 7FmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=svHIYYsnUTreXuvX8V5j3gYUDNQ2Qs7ua4MdAIMR+mQ=; b=SRNg/ZnIBpYbHuk1S+m3HUAfWsABv5WiyJZnr/9WeY5/gc22dI/bkdkirhNNWDStOZ qHNNJ197Ey0ioQYCZ1NRr2xeKvgtYw+u8K3/usDUEvmLM9sF3W2V/Czims1kbsZh4jW3 ueKoEIToMS1Xdpu+UIiJAdo+Gq7i/sij2FykiEaFQ3vc3hkOdM+gUykTaMtuCBc+ajtI fOimAlkm5dwLMrvE7Ws8wkexWiwkyxX1iGsR6jtXg79HFMWTUQzUtv2HuR09PUnpuvOj 0cllbyxAPxPMzPBSAQQUXtbCT2IFCft8Xo7CPHCZ27RFDTR71fH/VdZ0k1BaupDtVtwM 18zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=kUxyoogy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020a170902869200b001ab18d794a5si3229491plo.297.2023.05.26.00.05.30; Fri, 26 May 2023 00:05:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=kUxyoogy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242328AbjEZG5L (ORCPT + 99 others); Fri, 26 May 2023 02:57:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbjEZG5K (ORCPT ); Fri, 26 May 2023 02:57:10 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE46E95; Thu, 25 May 2023 23:57:09 -0700 (PDT) Date: Fri, 26 May 2023 08:57:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1685084228; bh=svHIYYsnUTreXuvX8V5j3gYUDNQ2Qs7ua4MdAIMR+mQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kUxyoogygvgs87cTjQvR6A7rvVBHtM0GxBqXbkuy2fa+dKd8zPRrhAGUbyeMzZGe/ So2e2OkGQJexcrinFdfjO4ngF0eba/peYRfnksaujydQhYl3ON+JYjfKe0wiLOwxqG iUneCQgPT/JO7dRY+dhnAuPl2uZtI7JKgr6j1E7E= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Zhangjin Wu Cc: w@1wt.eu, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com Subject: Re: [PATCH 05/13] selftests/nolibc: riscv: customize makefile for rv32 Message-ID: <4a3b1cdf-91d5-4668-925e-21f8f5c64a92@t-8ch.de> References: <7adb27a7c56dd06d782710a5f684ea6263900f98.1684949268.git.falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7adb27a7c56dd06d782710a5f684ea6263900f98.1684949268.git.falcon@tinylab.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-05-25 01:50:57+0800, Zhangjin Wu wrote: > both riscv64 and riscv32 have the same ARCH value, it is riscv, the > default defconfig enables 64bit, to support riscv32, let's allow pass > "ARCH=riscv32" or "ARCH=riscv CONFIG_32BIT=1" to customize riscv32 > setting. What's the advantage of doing CONFIG_32BIT? For i386/x86_64, arm/arm64 it's not necessary either. (Let's ignore the "x86" case) If for riscv the "normal" version is riscv64 then adding a new "riscv32" that works the same as the other architectures seems nicer and easier.