From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uKJxJAtIzl95RwAAWB0awg (envelope-from ) for ; Mon, 07 Dec 2020 10:19:39 -0500 Received: by simark.ca (Postfix, from userid 112) id 933C81F096; Mon, 7 Dec 2020 10:19:39 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 94AED1E552 for ; Mon, 7 Dec 2020 10:19:38 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 29A503984049; Mon, 7 Dec 2020 15:19:38 +0000 (GMT) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by sourceware.org (Postfix) with ESMTPS id DF2F73982E30 for ; Mon, 7 Dec 2020 15:19:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DF2F73982E30 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wr1-x442.google.com with SMTP id c1so1173148wrq.6 for ; Mon, 07 Dec 2020 07:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PJqh1cAISzXiLFTGzxnskkawHhrbo4Xzf4sZjacZu7o=; b=DUx+Zjjck643Of69L+1EbmIqFOfQ1aDT9Gn5gYC5se1bhiWEQMLB2zKrZ5rnMfmZeT VrlTdZoJZhW2qL1TqlEQanpInhKUFnuCXKzN8NB52J14tKIAAQJv0goQ47yuEyZEwstE jTQhtMZANaENvtz5H70xFY6s6NppTh0zI1ln/os3g3TAHNVRJ7fs7GF0QVUx5CTgiV/y LCIsNsWksRCnpgq6AIPr0jNTzJ+XKX2p6QkXbae+YIF3nzp60Xw2lJS83c4+dEl6K3GK PIPJCY3L/waS87K4VRvGd4BQ4k4MOV/d1iTW0/7rxHO+RwjNDxRPkj3S/lrJT4sn53uC gdIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PJqh1cAISzXiLFTGzxnskkawHhrbo4Xzf4sZjacZu7o=; b=ilXbNk5E04XCNSqX5PXhkT6VcynOwl2Pr7m4dzCb8PGA6eddk7lJR557tSEwxGsVxQ vxuk2RZXUF/qYvkD2+FSDow1FpB3LoDhMo/pJRu0LC+zNdBCJudbelKvJxZaBgULf+6H S1Sw4B0IGYaJ8cpZb6SNggXbToUMHAp5DWa+4i8DTq+eiux1kbh04H9OaVQLXTki1UZf 1dT7Ole25/PjC1QX/iPCg1woLOeG51d8VAgRkrXxWTnVWP18Ebgv0XhWpDFgTVfyGPge VFbAGI1JP+dbmVDkfTWfwmGpobparSFjU5taABBDMNTFrNQJ4WgobO1mC4IJ374lxpRR 2Zgw== X-Gm-Message-State: AOAM531RgU2WkknJzGMvnkKnCe5yM1g4hxdps6RUXfklEDBdeEqyPPkI beYgAZ9BFckGZ9kHv8Yrl4Deiw== X-Google-Smtp-Source: ABdhPJxre+PU3PEpSvezikbOtH0Kn3EFTvj2lqMzHSeI5FUcVzZQZtxRKDvCdbAqNfUcY3XRsth5Ag== X-Received: by 2002:adf:e541:: with SMTP id z1mr20807978wrm.389.1607354374026; Mon, 07 Dec 2020 07:19:34 -0800 (PST) Received: from localhost (host109-154-20-215.range109-154.btcentralplus.com. [109.154.20.215]) by smtp.gmail.com with ESMTPSA id c2sm15114332wrv.41.2020.12.07.07.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 07:19:33 -0800 (PST) Date: Mon, 7 Dec 2020 15:19:32 +0000 From: Andrew Burgess To: Jim Wilson Subject: Re: [PATCH 6/8] bfd/binutils: add support for RISC-V CSRs in core files Message-ID: <20201207151932.GL2729@embecosm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux/5.8.13-100.fc31.x86_64 (x86_64) X-Uptime: 15:18:57 up 43 days, 6:22, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Binutils , gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" * Jim Wilson [2020-12-02 15:50:58 -0800]: > On Wed, Dec 2, 2020 at 9:39 AM Andrew Burgess > wrote: > > > diff --git a/include/elf/common.h b/include/elf/common.h > > index 1dbf0b11983..54d5d989a39 100644 > > --- a/include/elf/common.h > > +++ b/include/elf/common.h > > @@ -663,6 +663,8 @@ > > /* note name must be "LINUX". */ > > #define NT_ARC_V2 0x600 /* ARC HS accumulator/extra > > registers. */ > > /* note name must be "LINUX". */ > > +#define NT_RISCV_CSR 0x501 /* RISC-V Control and Status > > Registers */ > > + /* note name must be "CORE". */ > > #define NT_SIGINFO 0x53494749 /* Fields of siginfo_t. */ > > #define NT_FILE 0x46494c45 /* Description of mapped > > files. */ > > > > Odd that the 0x5XX numbering was skipped for ARC, though I don't see any > reason for it, so it appears OK to use for RISC-V. I would suggest keeping > them in numerical order to make the file easier to read, so if you want to > use 0x501 put it before the ARC entry. I've reordered the lines in my current patch tree as you suggest. Thanks, Andrew