Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
To: Abhay Kandpal <abhay@linux.ibm.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: "cel@linux.ibm.com" <cel@linux.ibm.com>, Abhay Kandpal <Abhay.k@ibm.com>
Subject: Re: [PATCH v2] PowerPC: Add support for Dense Math registers (RFC02653)
Date: Tue, 29 Sep 2026 11:11:40 +0000	[thread overview]
Message-ID: <0bcbd62bdb115b97f610c23d5821470e29772079.camel@de.ibm.com> (raw)
In-Reply-To: <20260929085655.1053446-1-abhay@linux.ibm.com>

Abhay Kandpal <abhay@linux.ibm.com> wrote:

>gdb/
>	* arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_DMRREGSET):
Define.
>	(ppc_linux_features): Add isa32 field.
>	(ppc_linux_no_features): Initialize isa32 to false.
>	* arch/ppc-linux-common.c (ppc_linux_match_description):
Return
>	the ISA 3.X target description when isa32 is set.
>	* arch/ppc-linux-tdesc.h (tdesc_powerpc_isa32_vsx32l)
>	(tdesc_powerpc_isa32_vsx64l): Declare.
>	* features/Makefile: Add powerpc-isa32-vsx32l and
>	powerpc-isa32-vsx64l entries.
>	* features/rs6000/power-dmr.xml: New file.
>	* features/rs6000/powerpc-isa32-vsx32l.xml: New file.
>	* features/rs6000/powerpc-isa32-vsx64l.xml: New file.
>	* features/rs6000/powerpc-isa32-vsx32l.c: New generated file.
>	* features/rs6000/powerpc-isa32-vsx64l.c: New generated file.
>	* regformats/rs6000/powerpc-isa32-vsx32l.dat: New generated
file.
>	* regformats/rs6000/powerpc-isa32-vsx64l.dat: New generated
file.
>	* nat/ppc-linux.h (PPC_FEATURE2_DMF): Define if not already
>	defined.
>	* ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Fetch
the
>	dmr regset.
>	(store_register, store_ppc_registers): Store the dmr regset.
>	(ppc_linux_nat_target::read_description): Detect Dense Math
>	availability and set the isa32 field in the features struct.
>	* ppc-linux-tdep.c (ppc32_regmap_dmr, ppc32_linux_dmrregset):
>	New globals.
>	(ppc_linux_iterate_over_regset_sections): Call back with the
dmr
>	regset.
>	* ppc-linux-tdep.h (ppc32_linux_dmrregset): Declare.
>	* ppc-tdep.h (struct ppc_gdbarch_tdep) <ppc_dmr0_regnum>: New
>	field.
>	(enum): <PPC_DMR0_REGNUM> through <PPC_DMR7_REGNUM>: New enum
>	values.
>	(PPC_IS_DMR_REGNUM): Define.
>	* rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate
the
>	dmr feature.
>
>gdbserver/
>	* configure.srv (powerpc*-*-linux*): Add rs6000/power-dmr.xml,
>	powerpc-isa32-vsx32l.o and powerpc-isa32-vsx64l.o.
>	* linux-ppc-low.cc (ppc_fill_dmrregset, ppc_store_dmrregset):
>	New functions.
>	(ppc_regsets): Add entry for dmr regset.
>	(ppc_target::low_arch_setup): Detect Dense Math availability
and
>	set isa32 in the features struct.  Set size for dmr regset.
>	(ppc_target::get_ipa_tdesc_idx): Return PPC_TDESC_ISA32_VSX
for
>	the ISA 3.X target description.
>	* linux-ppc-ipa.cc (ppc_get_ipa_tdesc): Handle
PPC_TDESC_ISA32_VSX.
>	* linux-ppc-tdesc-init.h (PPC_TDESC_ISA32_VSX): New enum
value.
>	(init_registers_powerpc_isa32_vsx32l): Declare.
>	(init_registers_powerpc_isa32_vsx64l): Declare.


This version is OK.

Thanks,
Ulrich

      reply	other threads:[~2026-09-29 11:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29  8:56 Abhay Kandpal
2026-09-29 11:11 ` Ulrich Weigand [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0bcbd62bdb115b97f610c23d5821470e29772079.camel@de.ibm.com \
    --to=ulrich.weigand@de.ibm.com \
    --cc=Abhay.k@ibm.com \
    --cc=abhay@linux.ibm.com \
    --cc=cel@linux.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox