From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75903 invoked by alias); 10 Aug 2018 14:44:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 75889 invoked by uid 89); 10 Aug 2018 14:44:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Aug 2018 14:44:12 +0000 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w7AEdmeB060179 for ; Fri, 10 Aug 2018 10:44:11 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ks9yeq79y-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 10 Aug 2018 10:44:10 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 10 Aug 2018 15:44:07 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 10 Aug 2018 15:44:06 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w7AEi5H340108244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 10 Aug 2018 14:44:05 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5CFFA42047; Fri, 10 Aug 2018 17:44:12 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 499A742042; Fri, 10 Aug 2018 17:44:12 +0100 (BST) Received: from oc3748833570.ibm.com (unknown [9.145.37.152]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 10 Aug 2018 17:44:12 +0100 (BST) Received: by oc3748833570.ibm.com (Postfix, from userid 1000) id 4AA46D802AC; Fri, 10 Aug 2018 16:44:04 +0200 (CEST) Subject: Re: [PATCH v2 10/12] [PowerPC] Add support for EBB and PMU registers To: pedromfc@linux.ibm.com (Pedro Franco de Carvalho) Date: Fri, 10 Aug 2018 14:44:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org, edjunior@gmail.com In-Reply-To: <20180810025210.6942-11-pedromfc@linux.ibm.com> from "Pedro Franco de Carvalho" at Aug 09, 2018 11:52:08 PM MIME-Version: 1.0 x-cbid: 18081014-4275-0000-0000-000002A7F21B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18081014-4276-0000-0000-000037B10438 Message-Id: <20180810144404.4AA46D802AC@oc3748833570.ibm.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-SW-Source: 2018-08/txt/msg00279.txt.bz2 Pedro Franco de Carvalho wrote: > YYYY-MM-DD Edjunior Barbosa Machado > Pedro Franco de Carvalho > > * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET) > (PPC_LINUX_SIZEOF_PMUREGSET): Declare. > * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU): > Define if not already defined. > * features/rs6000/power-ebb.xml: New file. > * features/rs6000/power-linux-pmu.xml: New file. > * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu > features. > * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise. > * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate. > * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate. > * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate. > * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate. > * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call > fetch_regset with ebb and pmu regsets. > (ppc_linux_regset_available_p): New function. > (store_register, store_ppc_registers): Call store_regset with ebb > and pmu regsets. > (ppc_linux_nat_target::read_description): Set isa207 field in the > features struct if ebb and pmu are avaiable. > * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu) > (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals. > (ppc_linux_iterate_over_regset_sections): Call back with the ebb > and pmu regsets. > (ppc_linux_core_read_description): Check if the pmu section is > present and set isa207 in the features struct. > * ppc-linux-tdep.h (ppc32_linux_ebbregset) > (ppc32_linux_pmuregset): Declare. > * ppc-tdep.h (struct gdbarch_tdep) : New field. > : New fields. > : New field. > (enum): : > New enum values. > : New enum > values. > : New enum values. > (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define. > * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the > ebb and pmu features. > > gdb/gdbserver/ChangeLog: > YYYY-MM-DD Pedro Franco de Carvalho > > * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and > rs6000/power-linux-pmu.xml to srv_xmlfiles. > * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset) > (ppc_store_pmuregset): New functions. > (ppc_regsets): Add entries for ebb and pmu regsets. > (ppc_arch_setup): Set isa207 in features struct if the ebb and > pmu regsets are available. Set sizes for these regsets. > > gdb/doc/ChangeLog: > YYYY-MM-DD Pedro Franco de Carvalho > > * gdb.texinfo (PowerPC Features): Describe new features > "org.gnu.gdb.power.ebb" and "org.gnu.gdb.power.linux.pmu". This is OK. Thanks, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain Ulrich.Weigand@de.ibm.com