From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 6D6D43858D28 for ; Thu, 22 Jun 2023 08:33:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D6D43858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3111cb3dda1so8007933f8f.0 for ; Thu, 22 Jun 2023 01:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1687422826; x=1690014826; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=fXpARIUCPKM1vj0djf1hqnCX59nf5Gi7OXx7ksYW7WY=; b=GkJp4Ftha9ogg7QcF/3UhOpC9QB8LMUidtoqFix1lC1LzAVqYgm5hH6YIUHupBGXwm BFUpiyz8eIBgFk7B4g61dNrIe/vL2TnAzxLsgPWXlXULF34dUFQ24AeP2pkHpw2VzBV/ 9wa47ca+zmzy7qOMxbFJBObWLtrZXmpfITz+BA8vqPbBX94zfiXJL8+2S3+JiQEHiB2N B+oMLxcn3O+zoJ62FpU+2jgDEUajg0l3iBDuqkLbwpdCFsLQc7wLhT9G5daMBI+WOgpo 2+geSaXtVv3iRq6MoTmsr6z27xIT5/nvn4hQMnHqW3qtraYfUnB/1sPBHqEgLwrb4dVC H+PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687422826; x=1690014826; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=fXpARIUCPKM1vj0djf1hqnCX59nf5Gi7OXx7ksYW7WY=; b=Zjc6cFhTW6vNG/3G7R7L6zgNBSoyI1Jy000BgSocauasOwuUowsbNsHCNua5B8PaRc pw63L1LNR3VO3yiwOkS9ygwLd3WTJc+VGs2IejzcgsooSlz0J4A9wgOaFlsW1xSp1Hp2 5m9ttGeDoHkidYq639FN1U63BL6cLWZll1MWhclaQX9TyFvN4N6mZ3CeblgHz0u5aaV0 WMTwmcu5l0MW3+G+dx4NuYZgAos2X+PyWtd0HXf44Xm89vRNAns268qfQiIb/n+GYJCd udR76wgp1QYxp/TmcxR31CfcBSLuBc2k7CBMYQUNKEav7JC2ysNoHhPVMW9JIeTvcPNT 04pw== X-Gm-Message-State: AC+VfDyZ2ctkAMPrVHXBGHbaYfvraPObjgCALMzaAW0JI9Dy6GaFv2ZC T83s13Qg1GwGEfH02MPoqxCfjw== X-Google-Smtp-Source: ACHHUZ784Pn+wISSVVJqYLR3Qx2E1kz6a1vDlBp1Det3RLENj7ep8sPK1gEj/QjGe3cRLaK6ZPJtPQ== X-Received: by 2002:a5d:590c:0:b0:30f:ba85:52b9 with SMTP id v12-20020a5d590c000000b0030fba8552b9mr17346916wrd.37.1687422826109; Thu, 22 Jun 2023 01:33:46 -0700 (PDT) Received: from poulhies-Precision-5550 (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id d2-20020adff842000000b00312793cc763sm6529177wrq.15.2023.06.22.01.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 01:33:45 -0700 (PDT) References: <20230620074700.1252872-1-poulhies@adacore.com> <87o7la2q6g.fsf@adacore.com> User-agent: mu4e 1.10.1; emacs 28.1 From: Marc =?utf-8?Q?Poulhi=C3=A8s?= To: Alex Coplan Cc: gcc-patches@gcc.gnu.org, Daniel King Subject: Re: [COMMITTED] ada: Add CHERI intrinsic bindings and helper functions. Date: Thu, 22 Jun 2023 10:18:48 +0200 In-reply-to: Message-ID: <87352j3nh3.fsf@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,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 server2.sourceware.org List-Id: Hi Alex, > On 20/06/2023 15:47, Marc Poulhi=C3=A8s wrote: >> Hi, >> >> >> The package Interfaces.CHERI provides intrinsic bindings and >> >> helper functions to allow software to query, create, and >> >> manipulate CHERI capabilities. >> > >> > I'm curious what the motivation for these intrinsic wrappers is, given= that >> > GCC trunk doesn't currently support them. Out of interest, can you sha= re what >> > the use case for these is? >> >> We share the same Ada frontend with different GCC compilers and >> contribute it in GCC's master branch. >> >> You're correct that this particular change is not useful (yet) with >> master, but we are testing/using it with a CHERI-aware GCC. > > Interesting, I was only curious because we (Arm) are maintaining a branch= with CHERI > and Morello support in the ARM/morello vendor branch: > https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dshortlog;h=3Drefs/vendors/ARM/he= ads/morello > > is this a different CHERI GCC port that you're referring to? No, we have used your morello branch as the starting point for our port which consists in having the latest Ada frontend/runtime work there. Marc