From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 042DE3858D20 for ; Fri, 11 Aug 2023 16:43:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 042DE3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1bc6bfc4b58so16505425ad.1 for ; Fri, 11 Aug 2023 09:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1691772227; x=1692377027; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=z6L45V3hEYzkYEJLns+7zq3ClqMmIV36O2cCBbUFcDU=; b=0ur2YecszkAvnw7YZ9pZGx5G9i6tQcXQ5uR+5z52+aGhZ9V89H9N0dKmivEIegaWts JjMLiXiuxyZjmVJNsMr7LW75iUR3PE5SJD4inO/NJZ2+qpL6V72wo7ImlWiH9DcaAoQJ ie+yUbw2EAs5tQ6XKnAzrhTL6/ekMSnwjd+zy83UW+Gzg2WSWTV7IYaVno6qAnR2aS6n gqGLNnvP3MINjLl7yOCVJfv97OFtJIu6+899J58KFYP5arN/pXXksg9MK0dkpzcFE0kD U15KuFa0NdfU8SL7eGlagu/JqFE3OKXaJKiu/FCQ8CnVVic1Tz3O+hg0xcNL7iagC1n2 lXyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691772227; x=1692377027; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=z6L45V3hEYzkYEJLns+7zq3ClqMmIV36O2cCBbUFcDU=; b=AdNlHBNhoQ1RKmpYb6vp7jGOExp0E6W5+vlWrIXLqMRamsVa4QDAGMvQ/Ko6pGltP+ wSQ+umsQqlojCIHPdQ+GA04sk5uI0iD6cMCaIZCIExK4L47r2jWnxHU9zsWS7zHYRcfB XeagajPt4AN4fnhAyfHN/WlCpBbUFQmYn60FP4ey93JBue+a2Vz3azqcebxGYl4onrO3 O1+XTtjbtnaF5zDZO+cc6LWpa1kDDQ/iZOlQjfiGrphhxoc1kE2HkeLmpo4xBvA3BO7v M6nO5f/6PHSE+D475L+xfc6E3+W7/ltv+btVm8Cf7XtzpMxL4KmCNuXFQQXl+k4FBOD6 pmPA== X-Gm-Message-State: AOJu0YwZy3KwzcbcKmTUogCosEnKDuiHeJkPxYJyT/YBSMSz8QMexZTv J7aLPQnbLhtd14OJxbWQsdvgkRpwMbAZ2enCbLc= X-Google-Smtp-Source: AGHT+IGz/9B4xvDapUOZmkCqGWKeTgkRxjFn72a1kq4kk+Q1yyNTSuTjfBdTIlAQE/P+1N1lhe1ZiQ== X-Received: by 2002:a17:902:bb8c:b0:1b0:3637:384e with SMTP id m12-20020a170902bb8c00b001b03637384emr1770911pls.25.1691772227157; Fri, 11 Aug 2023 09:43:47 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id y10-20020a170902b48a00b001bbd1562e75sm4138823plr.55.2023.08.11.09.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 09:43:46 -0700 (PDT) Date: Fri, 11 Aug 2023 09:43:46 -0700 (PDT) X-Google-Original-Date: Fri, 11 Aug 2023 09:43:44 PDT (-0700) Subject: Re: [PATCH v2 2/2] Propagate NT_RISCV_VECTOR from Linux kernel headers to binutils. The value is identical to pre-existing NT_RISCV_CSR but the note names different (NT_RISCV_CSR is "GDB" and NT_RISCV_VECTOR is "CORE") In-Reply-To: <87pm3td9ni.fsf@redhat.com> CC: gdb-patches@sourceware.org, gdb-patches@sourceware.org, binutils@sourceware.org, greentime.hu@sifive.com, jhb@freebsd.org, greg.savin@sifive.com From: Palmer Dabbelt To: Andrew Burgess Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,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 List-Id: On Fri, 11 Aug 2023 05:51:45 PDT (-0700), Andrew Burgess wrote: > Greg Savin via Gdb-patches writes: > >> --- >> include/elf/common.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/include/elf/common.h b/include/elf/common.h >> index e7eede23a07..d28f5c6ccf5 100644 >> --- a/include/elf/common.h >> +++ b/include/elf/common.h >> @@ -715,6 +715,8 @@ >> /* note name must be "CORE". */ >> #define NT_RISCV_CSR 0x900 /* RISC-V Control and Status Registers */ >> /* note name must be "GDB". */ >> +#define NT_RISCV_VECTOR 0x900 /* RISC-V Vector Registers */ >> + /* note name must be "CORE". */ > > I'm not a binutils maintainer, but do have an interest from the > RISC-V/GDB side. > > Given the comments you made in an earlier mail, I guess we're going to > have to restructure some of the core file support in order to handle > NT_RISCV_CSR and NT_RISCV_VECTOR having the same values. But that > should be doable. > > No objections to this patch from me. NT_RISCV_VECTOR isn't in a releasted kernel, so it's not a stable uABI yet. So there's still time to change it. 0I've got a revert on the kernel lists, it'd mean we miss 6.5 but we'd just end up in 6.6 which isn't so bad. > Thanks, > Andrew > > >> #define NT_SIGINFO 0x53494749 /* Fields of siginfo_t. */ >> #define NT_FILE 0x46494c45 /* Description of mapped files. */ >> >> -- >> 2.25.1