Re: [PATCH v2 12/12] [PowerPC] Add support for HTM registers

Eli Zaretskii
2018-08-10T07:34:21Z

> From: Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
> Cc: uweigand@de.ibm.com, edjunior@gmail.com
> Date: Thu, 9 Aug 2018 23:52:10 -0300
>
> gdb/gdbserver/ChangeLog:
> YYYY-MM-DD Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
>
> * configure.srv (ipa_ppc_linux_regobj): Add
> powerpc-isa207-htm-vsx32l-ipa.o and
> powerpc-isa207-htm-vsx64l-ipa.o.
> (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
> powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
> rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
> rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
> rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
> rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
> rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
> and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
> * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
> <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
> (init_registers_powerpc_isa207_htm_vsx32l)
> (init_registers_powerpc_isa207_htm_vsx64l): Declare.
> * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
> (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
> (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
> (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
> (ppc_store_tm_ctarregset): New functions.
> (ppc_regsets): Add entries for HTM regsets.
> (ppc_arch_setup): Set htm in features struct when needed. Set
> sizes for the HTM regsets.
> (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
> (initialize_low_arch): Call
> init_registers_powerpc_isa207_htm_vsx32l and
> init_registers_powerpc_isa207_htm_vsx64l.
> * linux-ppc-ipa.c (get_ipa_tdesc): Handle
> PPC_TDESC_ISA207_HTM_VSX.
> (initialize_low_tracepoint): Call
> init_registers_powerpc_isa207_htm_vsx32l and
> init_registers_powerpc_isa207_htm_vsx64l.
>
> gdb/testsuite/ChangeLog:
> YYYY-MM-DD Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
>
> * gdb.arch/powerpc-htm-regs.c: New file.
> * gdb.arch/powerpc-htm-regs.exp: New file.
>
> gdb/doc/ChangeLog:
> YYYY-MM-DD Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
>
> * gdb.texinfo (PowerPC Features): Describe new features
> "org.gnu.gdb.power.htm.spr", "org.gnu.gdb.power.htm.core",
> "org.gnu.gdb.power.htm.fpu", "org.gnu.gdb.power.htm.altivec",
> "org.gnu.gdb.power.htm.vsx", "org.gnu.gdb.power.htm.ppr",
> "org.gnu.gdb.power.htm.dscr", "org.gnu.gdb.power.htm.tar".

OK for the gdb.texinfo part.

Thanks.