Message ID | 20230807111029.2320238-3-arsen@aarsen.me |
---|---|
State | Unresolved |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1375155vqr; Mon, 7 Aug 2023 04:19:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVT2EpfkSTm/mcORC4FtnP0sNeMXhrB6BFPgH5W5OxD1QSiOgbmbzZMTVsDCUcxVKKe2QD X-Received: by 2002:a05:6402:74f:b0:522:23e8:2c69 with SMTP id p15-20020a056402074f00b0052223e82c69mr6887261edy.27.1691407187149; Mon, 07 Aug 2023 04:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691407187; cv=none; d=google.com; s=arc-20160816; b=GiBpchiUXHdBqMPDBZl13FhGT557sMbNiYYRODzIAPgesV3gAyfI7wILPC4WL6yMB/ XQANNYj/qYUZqg5arnw522NPaqE+HaQPPKN3R7/BWWEnqLaD6w1n5yNrhD0tWjXNIevL jdlLyNmc4aK2910UAa/HGCFwi/uR/lLd/1K75G6ZTdgAa2REeBRmXio/2XZq9j9kN4uk FWL1YkFWlITFUqZrvsjWIRQ3L/7L20lt3uSwbuLX6bjjdS87f1DKiJSHranM+QSjHYU+ MMNAqMggjrgplPgrwspKVgfHVN++bndPrlO4SJNOeWI718pAWvppoArgu6ObsTtC8xuH t41g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=esNx7pm/rb59WxvKNhn87/HsRPGFD6dpl6sH+KGzKwE=; fh=0M8lpX2w5yCjl+nYaRvjE4BTLAV+SzjDcOrI72X1PxQ=; b=qLA5QsLl9JMPTo/a/cD3+b5QDOOQWotyqWRJ7JQ8lyV8mYmPkGQOaNSOtKGj3wiiJD ewrvch+6/GZ5PCs7Zd58159ukv885GQeUyHep8n75Ug4bl5D0RambNxkL95Hb1ajTUez a7Ok4BYNSPrzMxd2fcaEvjLh7IU9UPVJxeAwf7aJbsUPNImXmB6bi3DvpH3dMgzqfeup td0XJP/0f+N2GgjXQyrsMae5cSqGNEFpZC6PtXlG3a032uxfG0faEgrfvjKo3Skt70NK YP1bosP1Ex40WtdzoQAT2lDWZRj2VCkeM2nkAqfb0nbMcnLZFw7BA9zbcDwOGYM7d2pL UPxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="q9/0TpBI"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y2-20020a056402134200b005222fcd737asi5593186edw.136.2023.08.07.04.19.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 04:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="q9/0TpBI"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 974983857033 for <ouuuleilei@gmail.com>; Mon, 7 Aug 2023 11:19:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 974983857033 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691407175; bh=esNx7pm/rb59WxvKNhn87/HsRPGFD6dpl6sH+KGzKwE=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=q9/0TpBIA9CTQxvJf1tYaPuEUqxbjZznHh4JFV/dr0UQmwjqDuZzzK3uKmndOJ8wN zZ+7t4xWkNgRw+G598nRLPbW4TBQFGwhUxPkZ+aj22uZtQCuc6ADPvyBk9kiTHv0fY 3uorZVe8o+V1SNrFZ4xcLMyPixUD3MQ96TMSBg58= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [IPv6:2001:67c:2050:0:465::103]) by sourceware.org (Postfix) with ESMTPS id E0C403858D28; Mon, 7 Aug 2023 11:19:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E0C403858D28 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4RKDNZ2vx9z9snx; Mon, 7 Aug 2023 13:19:10 +0200 (CEST) To: gdb-patches@sourceware.org, binutils@sourceware.org Cc: Lulu Cheng <chenglulu@loongson.cn>, qijingwen <qijingwen@loongson.cn> Subject: [PATCH 02/45] Libvtv: Add loongarch support. Date: Mon, 7 Aug 2023 13:07:05 +0200 Message-ID: <20230807111029.2320238-3-arsen@aarsen.me> In-Reply-To: <20230807111029.2320238-1-arsen@aarsen.me> References: <20230807111029.2320238-1-arsen@aarsen.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4RKDNZ2vx9z9snx X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: =?utf-8?q?Arsen_Arsenovi=C4=87_via_Binutils?= <binutils@sourceware.org> Reply-To: =?utf-8?q?Arsen_Arsenovi=C4=87?= <arsen@aarsen.me> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773568982583971886 X-GMAIL-MSGID: 1773568982583971886 |
Series |
Synchronize shared build infrastructure with GCC tree
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | warning | Git am fail log |
Commit Message
Arsen Arsenović
Aug. 7, 2023, 11:07 a.m. UTC
From: Lulu Cheng <chenglulu@loongson.cn>
The loongarch64 specification permits page sizes of 4KiB, 16KiB and 64KiB,
but only 16KiB pages are supported for now.
Co-Authored-By: qijingwen <qijingwen@loongson.cn>
include/ChangeLog:
* vtv-change-permission.h (defined): Determines whether the macro
__loongarch_lp64 is defined
(VTV_PAGE_SIZE): Set VTV_PAGE_SIZE to 16KiB for loongarch64.
---
include/vtv-change-permission.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/vtv-change-permission.h b/include/vtv-change-permission.h index 5906e7d78cc..ffb5312522c 100644 --- a/include/vtv-change-permission.h +++ b/include/vtv-change-permission.h @@ -48,6 +48,10 @@ extern void __VLTChangePermission (int); #else #if defined(__sun__) && defined(__svr4__) && defined(__sparc__) #define VTV_PAGE_SIZE 8192 +#elif defined(__loongarch_lp64) +/* The page size is configurable by the kernel to be 4, 16 or 64 KiB. + For now, only the default page size of 16KiB is supported. */ +#define VTV_PAGE_SIZE 16384 #else #define VTV_PAGE_SIZE 4096 #endif