Message ID | 20231112061514.2306187-25-guoren@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp562088vqg; Sat, 11 Nov 2023 22:19:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IE21sa6SmvKVWHMeOsvUGs43lSnvIXH1FTeVFSbI2ph5aD/qaxNHea0OuosFJwmuTmbNolw X-Received: by 2002:a81:a18b:0:b0:5a7:bc79:9618 with SMTP id y133-20020a81a18b000000b005a7bc799618mr4031999ywg.12.1699769941377; Sat, 11 Nov 2023 22:19:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699769941; cv=none; d=google.com; s=arc-20160816; b=EAvkbToZYvJHP3+scf+2qmT5Q4OJlpwzJOaLk8EZVMSCEgzfXgzgPckrtKiCHHN1cX V9H90puHaVziwQU8TGz56nxqGliK7hwQutuEsNQb6CLR+UEA3r6uLBjgTwdu5ovHVzyl Qz7MzOkYTxp3FyI/KH1gHiHoT5nk4MuDQ/NENuSB3YXIp8KrHBTvGA5jWkcQSWAHvbKl 1SPpLnmsSGa6G/oz4/TiNH2pFVWzEddd/CyqMA1nr2JW6J38zsv567uzYOkdwFLbU8tX II3zTzpR66SOVZ99npQU9RKqizWExujUezuJAe0qz4fXCOXuXtL3bCWEDr6jUNu6KzmY G97w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b8Fd5algXv1hC9RL4Oqdh8Kcyt+C3bUuZZdNlKFcC0M=; fh=ZE/z2dNArDjRCaYXLY1qiMuWjPgjymC0plQjRd9hozE=; b=hmnjXsybmvHt+sHdOLH3dJ5iu6g6AzdQnje3gNr5lX70Xm4TlyxSQK590aCDmjfH06 wKdOYyy9IKj5iFGVZ8jP8VouRveXlA6Xid2MhhDVAsEF3cGDt3RrZurwiJcFw+xwU8fK dhm0O7KFiaaguhD4jhq88jbECGSOuZzyauqA4BBF1X9/guBg7kaZtXmn1t2w/D1F3Br6 L49yorcAuc2rU6Yyue3YRiEJEOvFjSvLF5bCSqhRVExGaiD2ouzkFTaC3ZIK6KNHRmG2 8y0/6frmTYaXM+ZvS3YqG3T208gGqNbFsQZY9evDxpRQMxGkyI3Qg/PGg6Ss5EjyXPZt +H8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dYK86b7k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id c21-20020a056a00249500b006c3482c4e4dsi3237857pfv.289.2023.11.11.22.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 22:19:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dYK86b7k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1E9DA808488D; Sat, 11 Nov 2023 22:19:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231408AbjKLGSy (ORCPT <rfc822;heyuhang3455@gmail.com> + 29 others); Sun, 12 Nov 2023 01:18:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231372AbjKLGSY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 12 Nov 2023 01:18:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88E7B4EC5 for <linux-kernel@vger.kernel.org>; Sat, 11 Nov 2023 22:17:54 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5733CC433CD; Sun, 12 Nov 2023 06:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699769874; bh=i54fNqJU7sp4UXlnwp+YcKfJLY+fhfGViunXjtd8s+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dYK86b7k9E9ZF7LvDQjIBzOpnNCn2Tujmh+DY478+1v491siLxIcYO0XXQgtr9EVD YkEwCIQ4bhW7o/fcNbcZb/CyIbKvZVeIM0ZLvKgqSNz4mE/hbpOofOpaq6KIteEm2E NDE1JUNUwoUxAErCY+HvrykIdHI4hC1y1H7uBvjC/mftXKkKthQD4PY0PVlpMSh0Fm cBcLqp+5nzEVrOpEydk2FAcQcTNNnk1nFA7kKzCu1WTF+KacRCT6G0Lar9mOQr9EnD l8PhPryyGvgqTaJ/BJl4gFTdKbC3Ci7jYtE4dnIr6q2i9ZItvDNaYcZH7K7ew3DzqS 7DQjQWfnd13tQ== From: guoren@kernel.org To: arnd@arndb.de, guoren@kernel.org, palmer@rivosinc.com, tglx@linutronix.de, conor.dooley@microchip.com, heiko@sntech.de, apatel@ventanamicro.com, atishp@atishpatra.org, bjorn@kernel.org, paul.walmsley@sifive.com, anup@brainfault.org, jiawei@iscas.ac.cn, liweiwei@iscas.ac.cn, wefu@redhat.com, U2FsdGVkX1@gmail.com, wangjunqiang@iscas.ac.cn, kito.cheng@sifive.com, andy.chiu@sifive.com, vincent.chen@sifive.com, greentime.hu@sifive.com, wuwei2016@iscas.ac.cn, jrtc27@jrtc27.com, luto@kernel.org, fweimer@redhat.com, catalin.marinas@arm.com, hjl.tools@gmail.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren <guoren@linux.alibaba.com> Subject: [RFC PATCH V2 24/38] riscv: s64ilp32: Add TImode (128 int) support Date: Sun, 12 Nov 2023 01:15:00 -0500 Message-Id: <20231112061514.2306187-25-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20231112061514.2306187-1-guoren@kernel.org> References: <20231112061514.2306187-1-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 11 Nov 2023 22:19:00 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782337965659361108 X-GMAIL-MSGID: 1782337965659361108 |
Series |
rv64ilp32: Running ILP32 on RV64 ISA
|
|
Commit Message
Guo Ren
Nov. 12, 2023, 6:15 a.m. UTC
From: Guo Ren <guoren@linux.alibaba.com> The s64ilp32 uses 64bit compiler, so it could support “Tetra Integer” mode, which represents a sixteen-byte (128) integer. It's the first 32BIT linux support TImode :) Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org> --- arch/riscv/Kconfig | 1 + arch/riscv/lib/Makefile | 1 + 2 files changed, 2 insertions(+)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 0fc03aa076e6..a45e31ef3b2c 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -339,6 +339,7 @@ config ARCH_RV64I config ARCH_RV64ILP32 bool "RV64ILP32" depends on NONPORTABLE + select ARCH_SUPPORTS_INT128 if !$(cc-option,$(m64-flag) -D__SIZEOF_INT128__=0) select 32BIT select MMU select VDSO64ILP32 diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile index 26cb2502ecf8..68af463795e1 100644 --- a/arch/riscv/lib/Makefile +++ b/arch/riscv/lib/Makefile @@ -9,5 +9,6 @@ lib-y += strncmp.o lib-$(CONFIG_MMU) += uaccess.o lib-$(CONFIG_64BIT) += tishift.o lib-$(CONFIG_RISCV_ISA_ZICBOZ) += clear_page.o +lib-$(CONFIG_ARCH_RV64ILP32) += tishift.o obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o