aboutsummaryrefslogtreecommitdiff
path: root/gdb/features
diff options
context:
space:
mode:
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2018-10-26 09:37:55 -0300
committerPedro Franco de Carvalho <pedromfc@linux.ibm.com>2018-10-26 10:23:01 -0300
commit8d619c01db64c533df3ffc706b694f293347f0d8 (patch)
treeec5d3f9d27708105e80c8e5f1b7aa426c2929a75 /gdb/features
parent81ab84fd6cdaab121988e0c424f8cdc0ae472e14 (diff)
downloadfsf-binutils-gdb-8d619c01db64c533df3ffc706b694f293347f0d8.zip
fsf-binutils-gdb-8d619c01db64c533df3ffc706b694f293347f0d8.tar.gz
fsf-binutils-gdb-8d619c01db64c533df3ffc706b694f293347f0d8.tar.bz2
[PowerPC] Add support for HTM registers
This patch adds support for Hardware Transactional Memory registers for the powerpc linux native and core file targets, and for the pwoerpc linux server stub. These registers include both the HTM special-purpose registers (TFHAR, TEXASR and TFIAR) as well as the set of registers that are checkpointed (saved) when a transaction is initiated, which the processor restores in the event of a transaction failure. The set of checkpointed general-purpose registers is returned by the linux kernel in the same format as the regular general-purpose registers, defined in struct pt_regs. However, the architecture specifies that only some of the registers present in pt_regs are checkpointed (GPRs 0-31, CR, XER, LR and CTR). The kernel fills the slots for MSR and NIP with other info. The other fields usually don't have meaningful values. GDB doesn't define registers that are not checkpointed in the architecture, but when generating a core file, GDB fills the slot for the checkpointed MSR with the regular MSR. These are usually similar, although some bits might be different, and in some cases the checkpointed MSR will have a value of 0 in a kernel-generated core-file. The checkpointed NIP is filled with TFHAR by GDB in the core-file, which is what the kernel does. The other fields are set to 0 by GDB. Core files generated by the kernel have a note section for checkpointed GPRs with the same size for both 32-bit and 64-bit threads, and the values for the registers of a 32-bit thread are squeezed in the first half, with no useful data in the second half. GDB generates a smaller note section for 32-bit threads, but can read both sizes. The checkpointed XER is required to be 32-bit in the target description documentation, even though the more recent ISAs define it as 64-bit wide, since the high-order 32-bits are reserved, and because in Linux there is no way to get a 64-bit checkpointed XER for 32-bit threads. If this changes in the future, the target description feature requirement can be relaxed to allow for a 64-bit checkpointed XER. Access to the checkpointed CR (condition register) can be confusing. The architecture only specifies that CR fields 1 to 7 (the 24 least significant bits) are checkpointed, but the kernel provides all 8 fields (32 bits). The value of field 0 is not masked by ptrace, so it will sometimes show the result of some kernel operation, probably treclaim., which sets this field. The checkpointed registers are marked not to be saved and restored. Inferior function calls during an active transaction don't work well, and it's unclear what should be done in this case. TEXASR and TFIAR can be altered asynchronously, during transaction failure recording, so they are also not saved and restored. For consistency neither is TFHAR. Record and replay also doesn't work well when transactions are involved. This patch doesn't address this, so the values of the HTM SPRs will sometimes be innacurate when the record/relay target is enabled. For instance, executing a "tbegin." alters TFHAR and TEXASR, but these changes are not currently recorded. Because the checkpointed registers are only available when a transaction is active (or suspended), ptrace can return ENODATA when gdb tries to read these registers and the inferior is not in a transactional state. The registers are set to the unavailable state when this happens. When gbd tries to write to one of these registers, and it is unavailable, an error is raised. The "fill" functions for checkpointed register sets in the server stub are not implemented for the same reason as for the EBB register set, since ptrace can also return ENODATA for checkpointed regsets. The same issues with 'G' packets apply here. Just like for the EBB registers, tracepoints will not mark the checkpointed registers as unavailable if the inferior was not in a transaction, so their content will also show 0 instead of <unavailable> when inspecting trace data. The new tests record the values of the regular registers before stepping the inferior through a "tbegin." instruction to start a transaction, then the checkpointed registers are checked against the recorded pre-transactional values. New values are written to the checkpointed registers and recorded, the inferior continues until the transaction aborts (which is usually immediately when it is resumed), and the regular registers are checked against the recorded values, because the abort should have reverted the registers to these values. Like for the EBB registers, target_store_registers will ignore the checkpointed registers when called with -1 as the regno argument (store all registers in one go). gdb/ChangeLog: 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> Pedro Franco de Carvalho <pedromfc@linux.ibm.com> * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l) (tdesc_powerpc_isa207_htm_vsx64l): Declare. * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET) (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET) (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET) (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET) (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET): Define. (struct ppc_linux_features) <htm>: New field. (ppc_linux_no_features): Add initializer for htm field. * arch/ppc-linux-common.c (ppc_linux_match_description): Return new tdescs. * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR) (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX) (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR): Define if not already defined. * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l and rs6000/powerpc-isa207-htm-vsx64l. (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and rs6000/powerpc-isa207-htm-vsx64l.xml. * features/rs6000/power-htm-spr.xml: New file. * features/rs6000/power-htm-core.xml: New file. * features/rs6000/power64-htm-core.xml: New file. * features/rs6000/power-htm-fpu.xml: New file. * features/rs6000/power-htm-altivec.xml: New file. * features/rs6000/power-htm-vsx.xml: New file. * features/rs6000/power-htm-ppr.xml: New file. * features/rs6000/power-htm-dscr.xml: New file. * features/rs6000/power-htm-tar.xml: New file. * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file. * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file. * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate. * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate. * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate. * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate. * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call fetch_regset with HTM regsets. (store_register, store_ppc_registers): Call store_regset with HTM regsets. (ppc_linux_nat_target::read_description): Set htm field in the features struct if needed. * ppc-linux-tdep.c: Include features/rs6000/powerpc-isa207-htm-vsx32l.c and features/rs6000/powerpc-isa207-htm-vsx64l.c. (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr) (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx) (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr) (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals. (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset) (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset) (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset) (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset) (ppc32_linux_cpprregset, ppc32_linux_cdscrregset) (ppc32_linux_ctarregset): New globals. (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions. (ppc_linux_collect_core_cpgrregset): New function. (ppc_linux_iterate_over_regset_sections): Call back with the htm regsets. (ppc_linux_core_read_description): Check if the tm spr section is present and set htm in the features struct. (_initialize_ppc_linux_tdep): Call initialize_tdesc_powerpc_isa207_htm_vsx32l and initialize_tdesc_powerpc_isa207_htm_vsx64l. * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset): Declare. (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset) (ppc32_linux_cvsxregset, ppc32_linux_cpprregset) (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare. * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>: New fields. <have_htm_fpu, have_htm_altivec, have_htm_vsx>: Likewise. <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise. <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise. (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>: New enum fields. <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise. <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise. <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise. <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise. <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise. <PPC_CTAR_REGNUM>: Likewise. (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM) (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define. * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG) (IS_CEFP_PSEUDOREG): Define. (rs6000_register_name): Hide the upper halves of checkpointed VSX registers. Return names for the checkpointed DFP, VSX, and EFP pseudo registers. (rs6000_pseudo_register_type): Remove initial assert and raise an internal error in the else clause instead. Return types for the checkpointed DFP, VSX, and EFP pseudo registers. (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle checkpointed DFP pseudo registers. (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle checkpointed VSX pseudo registers. (efp_pseudo_register_read, efp_pseudo_register_write): Rename from efpr_pseudo_register_read and efpr_pseudo_register_write. Handle checkpointed EFP pseudo registers. (rs6000_pseudo_register_read, rs6000_pseudo_register_write): Handle checkpointed DFP, VSX, and EFP registers. (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect) (efp_ax_pseudo_register_collect): New functions. (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo register logic to new functions. Handle checkpointed DFP, VSX, and EFP pseudo registers. (rs6000_gdbarch_init): Look for and validate the htm features. Include checkpointed DFP, VSX and EFP pseudo-registers. * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and HTM registers. gdb/gdbserver/ChangeLog: 2018-10-26 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: 2018-10-26 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: 2018-10-26 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".
Diffstat (limited to 'gdb/features')
-rw-r--r--gdb/features/Makefile4
-rw-r--r--gdb/features/rs6000/power-htm-altivec.xml58
-rw-r--r--gdb/features/rs6000/power-htm-core.xml48
-rw-r--r--gdb/features/rs6000/power-htm-dscr.xml12
-rw-r--r--gdb/features/rs6000/power-htm-fpu.xml45
-rw-r--r--gdb/features/rs6000/power-htm-ppr.xml12
-rw-r--r--gdb/features/rs6000/power-htm-spr.xml14
-rw-r--r--gdb/features/rs6000/power-htm-tar.xml12
-rw-r--r--gdb/features/rs6000/power-htm-vsx.xml43
-rw-r--r--gdb/features/rs6000/power64-htm-core.xml48
-rw-r--r--gdb/features/rs6000/powerpc-isa207-htm-vsx32l.c396
-rw-r--r--gdb/features/rs6000/powerpc-isa207-htm-vsx32l.xml29
-rw-r--r--gdb/features/rs6000/powerpc-isa207-htm-vsx64l.c396
-rw-r--r--gdb/features/rs6000/powerpc-isa207-htm-vsx64l.xml29
14 files changed, 1146 insertions, 0 deletions
diff --git a/gdb/features/Makefile b/gdb/features/Makefile
index 6eaa7db..150fef2 100644
--- a/gdb/features/Makefile
+++ b/gdb/features/Makefile
@@ -76,6 +76,8 @@ WHICH = aarch64 \
rs6000/powerpc-isa205-ppr-dscr-vsx32l \
rs6000/powerpc-isa205-ppr-dscr-vsx64l \
rs6000/powerpc-isa207-vsx32l rs6000/powerpc-isa207-vsx64l \
+ rs6000/powerpc-isa207-htm-vsx32l \
+ rs6000/powerpc-isa207-htm-vsx64l \
s390-linux32 s390-linux64 s390x-linux64 \
s390-linux32v1 s390-linux64v1 s390x-linux64v1 \
s390-linux32v2 s390-linux64v2 s390x-linux64v2 \
@@ -174,6 +176,8 @@ XMLTOC = \
rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml \
rs6000/powerpc-isa207-vsx32l.xml \
rs6000/powerpc-isa207-vsx64l.xml \
+ rs6000/powerpc-isa207-htm-vsx32l.xml \
+ rs6000/powerpc-isa207-htm-vsx64l.xml \
rs6000/powerpc-vsx32.xml \
rs6000/powerpc-vsx32l.xml \
rs6000/powerpc-vsx64.xml \
diff --git a/gdb/features/rs6000/power-htm-altivec.xml b/gdb/features/rs6000/power-htm-altivec.xml
new file mode 100644
index 0000000..efc33b7
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-altivec.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed VRs. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.altivec">
+ <vector id="v4f" type="ieee_single" count="4"/>
+ <vector id="v4i32" type="int32" count="4"/>
+ <vector id="v8i16" type="int16" count="8"/>
+ <vector id="v16i8" type="int8" count="16"/>
+ <union id="vec128">
+ <field name="uint128" type="uint128"/>
+ <field name="v4_float" type="v4f"/>
+ <field name="v4_int32" type="v4i32"/>
+ <field name="v8_int16" type="v8i16"/>
+ <field name="v16_int8" type="v16i8"/>
+ </union>
+
+ <reg name="cvr0" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr1" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr2" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr3" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr4" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr5" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr6" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr7" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr8" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr9" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr10" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr11" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr12" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr13" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr14" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr15" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr16" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr17" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr18" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr19" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr20" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr21" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr22" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr23" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr24" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr25" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr26" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr27" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr28" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr29" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr30" bitsize="128" type="vec128" save-restore="no"/>
+ <reg name="cvr31" bitsize="128" type="vec128" save-restore="no"/>
+
+ <reg name="cvscr" bitsize="32" save-restore="no" group="vector"/>
+ <reg name="cvrsave" bitsize="32" save-restore="no" group="vector"/>
+</feature>
diff --git a/gdb/features/rs6000/power-htm-core.xml b/gdb/features/rs6000/power-htm-core.xml
new file mode 100644
index 0000000..d067be8
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-core.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed GPRs. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.core">
+ <reg name="cr0" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr1" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr2" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr3" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr4" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr5" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr6" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr7" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr8" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr9" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr10" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr11" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr12" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr13" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr14" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr15" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr16" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr17" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr18" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr19" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr20" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr21" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr22" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr23" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr24" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr25" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr26" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr27" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr28" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr29" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr30" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cr31" bitsize="32" type="uint32" save-restore="no"/>
+
+ <reg name="ccr" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cxer" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="clr" bitsize="32" type="code_ptr" save-restore="no"/>
+ <reg name="cctr" bitsize="32" type="uint32" save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/power-htm-dscr.xml b/gdb/features/rs6000/power-htm-dscr.xml
new file mode 100644
index 0000000..9f218fa
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-dscr.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed DSCR. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.dscr">
+ <reg name="cdscr" bitsize="64" type="uint64" save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/power-htm-fpu.xml b/gdb/features/rs6000/power-htm-fpu.xml
new file mode 100644
index 0000000..561a8c3
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-fpu.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed FPRs. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.fpu">
+ <reg name="cf0" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf1" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf2" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf3" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf4" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf5" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf6" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf7" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf8" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf9" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf10" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf11" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf12" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf13" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf14" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf15" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf16" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf17" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf18" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf19" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf20" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf21" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf22" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf23" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf24" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf25" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf26" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf27" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf28" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf29" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf30" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cf31" bitsize="64" type="ieee_double" save-restore="no"/>
+ <reg name="cfpscr" bitsize="64" type="uint64" group="float"
+ save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/power-htm-ppr.xml b/gdb/features/rs6000/power-htm-ppr.xml
new file mode 100644
index 0000000..2725937
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-ppr.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed PPR. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.ppr">
+ <reg name="cppr" bitsize="64" type="uint64" save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/power-htm-spr.xml b/gdb/features/rs6000/power-htm-spr.xml
new file mode 100644
index 0000000..e933439
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-spr.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory SPRs. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.spr">
+ <reg name="tfhar" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="texasr" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="tfiar" bitsize="64" type="uint64" save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/power-htm-tar.xml b/gdb/features/rs6000/power-htm-tar.xml
new file mode 100644
index 0000000..bc6339d
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-tar.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed TAR. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.tar">
+ <reg name="ctar" bitsize="64" type="uint64" save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/power-htm-vsx.xml b/gdb/features/rs6000/power-htm-vsx.xml
new file mode 100644
index 0000000..2dd14fe
--- /dev/null
+++ b/gdb/features/rs6000/power-htm-vsx.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed upper VSRs. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.vsx">
+ <reg name="cvs0h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs1h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs2h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs3h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs4h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs5h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs6h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs7h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs8h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs9h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs10h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs11h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs12h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs13h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs14h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs15h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs16h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs17h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs18h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs19h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs20h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs21h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs22h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs23h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs24h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs25h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs26h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs27h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs28h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs29h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs30h" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cvs31h" bitsize="64" type="uint64" save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/power64-htm-core.xml b/gdb/features/rs6000/power64-htm-core.xml
new file mode 100644
index 0000000..b8dd6ae
--- /dev/null
+++ b/gdb/features/rs6000/power64-htm-core.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!-- POWER8 Hardware Transactional Memory checkpointed GPRs. -->
+<!DOCTYPE feature SYSTEM "gdb-target.dtd">
+<feature name="org.gnu.gdb.power.htm.core">
+ <reg name="cr0" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr1" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr2" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr3" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr4" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr5" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr6" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr7" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr8" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr9" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr10" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr11" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr12" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr13" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr14" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr15" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr16" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr17" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr18" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr19" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr20" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr21" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr22" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr23" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr24" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr25" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr26" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr27" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr28" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr29" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr30" bitsize="64" type="uint64" save-restore="no"/>
+ <reg name="cr31" bitsize="64" type="uint64" save-restore="no"/>
+
+ <reg name="ccr" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="cxer" bitsize="32" type="uint32" save-restore="no"/>
+ <reg name="clr" bitsize="64" type="code_ptr" save-restore="no"/>
+ <reg name="cctr" bitsize="64" type="uint64" save-restore="no"/>
+</feature>
diff --git a/gdb/features/rs6000/powerpc-isa207-htm-vsx32l.c b/gdb/features/rs6000/powerpc-isa207-htm-vsx32l.c
new file mode 100644
index 0000000..e1b933c
--- /dev/null
+++ b/gdb/features/rs6000/powerpc-isa207-htm-vsx32l.c
@@ -0,0 +1,396 @@
+/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
+ Original: powerpc-isa207-htm-vsx32l.xml */
+
+#include "defs.h"
+#include "osabi.h"
+#include "target-descriptions.h"
+
+struct target_desc *tdesc_powerpc_isa207_htm_vsx32l;
+static void
+initialize_tdesc_powerpc_isa207_htm_vsx32l (void)
+{
+ struct target_desc *result = allocate_target_description ();
+ set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
+
+ struct tdesc_feature *feature;
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.core");
+ tdesc_create_reg (feature, "r0", 0, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r1", 1, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r2", 2, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r3", 3, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r4", 4, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r5", 5, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r6", 6, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r7", 7, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r8", 8, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r9", 9, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r10", 10, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r12", 12, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r13", 13, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r14", 14, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r15", 15, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r16", 16, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r17", 17, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r18", 18, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r19", 19, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r20", 20, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r21", 21, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r22", 22, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r23", 23, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r24", 24, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r25", 25, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r26", 26, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r27", 27, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r28", 28, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr");
+ tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "code_ptr");
+ tdesc_create_reg (feature, "ctr", 68, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "xer", 69, 1, NULL, 32, "uint32");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.fpu");
+ tdesc_create_reg (feature, "f0", 32, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f1", 33, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f2", 34, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f3", 35, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f4", 36, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f5", 37, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f6", 38, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f7", 39, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f8", 40, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f9", 41, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f10", 42, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f11", 43, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f12", 44, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f13", 45, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f14", 46, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f15", 47, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f16", 48, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f17", 49, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f18", 50, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f19", 51, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f20", 52, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f21", 53, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f22", 54, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f23", 55, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f24", 56, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f25", 57, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f26", 58, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f27", 59, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f28", 60, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f29", 61, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f30", 62, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f31", 63, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "fpscr", 70, 1, "float", 64, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.linux");
+ tdesc_create_reg (feature, "orig_r3", 71, 1, NULL, 32, "int");
+ tdesc_create_reg (feature, "trap", 72, 1, NULL, 32, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.altivec");
+ tdesc_type *element_type;
+ element_type = tdesc_named_type (feature, "ieee_single");
+ tdesc_create_vector (feature, "v4f", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int32");
+ tdesc_create_vector (feature, "v4i32", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int16");
+ tdesc_create_vector (feature, "v8i16", element_type, 8);
+
+ element_type = tdesc_named_type (feature, "int8");
+ tdesc_create_vector (feature, "v16i8", element_type, 16);
+
+ tdesc_type_with_fields *type_with_fields;
+ type_with_fields = tdesc_create_union (feature, "vec128");
+ tdesc_type *field_type;
+ field_type = tdesc_named_type (feature, "uint128");
+ tdesc_add_field (type_with_fields, "uint128", field_type);
+ field_type = tdesc_named_type (feature, "v4f");
+ tdesc_add_field (type_with_fields, "v4_float", field_type);
+ field_type = tdesc_named_type (feature, "v4i32");
+ tdesc_add_field (type_with_fields, "v4_int32", field_type);
+ field_type = tdesc_named_type (feature, "v8i16");
+ tdesc_add_field (type_with_fields, "v8_int16", field_type);
+ field_type = tdesc_named_type (feature, "v16i8");
+ tdesc_add_field (type_with_fields, "v16_int8", field_type);
+
+ tdesc_create_reg (feature, "vr0", 73, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr1", 74, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr2", 75, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr3", 76, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr4", 77, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr5", 78, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr6", 79, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr7", 80, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr8", 81, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr9", 82, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr10", 83, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr11", 84, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr12", 85, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr13", 86, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr14", 87, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr15", 88, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr16", 89, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr17", 90, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr18", 91, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr19", 92, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr20", 93, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr21", 94, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr22", 95, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr23", 96, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr24", 97, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr25", 98, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr26", 99, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr27", 100, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr28", 101, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr29", 102, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr30", 103, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr31", 104, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vscr", 105, 1, "vector", 32, "int");
+ tdesc_create_reg (feature, "vrsave", 106, 1, "vector", 32, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.vsx");
+ tdesc_create_reg (feature, "vs0h", 107, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs1h", 108, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs2h", 109, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs3h", 110, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs4h", 111, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs5h", 112, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs6h", 113, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs7h", 114, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs8h", 115, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs9h", 116, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs10h", 117, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs11h", 118, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs12h", 119, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs13h", 120, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs14h", 121, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs15h", 122, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs16h", 123, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs17h", 124, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs18h", 125, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs19h", 126, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs20h", 127, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs21h", 128, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs22h", 129, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs23h", 130, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs24h", 131, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs25h", 132, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs26h", 133, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs27h", 134, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs28h", 135, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs29h", 136, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs30h", 137, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs31h", 138, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.ppr");
+ tdesc_create_reg (feature, "ppr", 139, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.dscr");
+ tdesc_create_reg (feature, "dscr", 140, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.tar");
+ tdesc_create_reg (feature, "tar", 141, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.ebb");
+ tdesc_create_reg (feature, "bescr", 142, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "ebbhr", 143, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "ebbrr", 144, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.linux.pmu");
+ tdesc_create_reg (feature, "mmcr0", 145, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "mmcr2", 146, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "siar", 147, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "sdar", 148, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "sier", 149, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.spr");
+ tdesc_create_reg (feature, "tfhar", 150, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "texasr", 151, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "tfiar", 152, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.core");
+ tdesc_create_reg (feature, "cr0", 153, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr1", 154, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr2", 155, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr3", 156, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr4", 157, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr5", 158, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr6", 159, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr7", 160, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr8", 161, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr9", 162, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr10", 163, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr11", 164, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr12", 165, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr13", 166, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr14", 167, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr15", 168, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr16", 169, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr17", 170, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr18", 171, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr19", 172, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr20", 173, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr21", 174, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr22", 175, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr23", 176, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr24", 177, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr25", 178, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr26", 179, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr27", 180, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr28", 181, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr29", 182, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr30", 183, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cr31", 184, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "ccr", 185, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cxer", 186, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "clr", 187, 0, NULL, 32, "code_ptr");
+ tdesc_create_reg (feature, "cctr", 188, 0, NULL, 32, "uint32");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.fpu");
+ tdesc_create_reg (feature, "cf0", 189, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf1", 190, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf2", 191, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf3", 192, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf4", 193, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf5", 194, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf6", 195, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf7", 196, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf8", 197, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf9", 198, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf10", 199, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf11", 200, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf12", 201, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf13", 202, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf14", 203, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf15", 204, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf16", 205, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf17", 206, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf18", 207, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf19", 208, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf20", 209, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf21", 210, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf22", 211, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf23", 212, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf24", 213, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf25", 214, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf26", 215, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf27", 216, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf28", 217, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf29", 218, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf30", 219, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf31", 220, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cfpscr", 221, 0, "float", 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.altivec");
+ element_type = tdesc_named_type (feature, "ieee_single");
+ tdesc_create_vector (feature, "v4f", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int32");
+ tdesc_create_vector (feature, "v4i32", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int16");
+ tdesc_create_vector (feature, "v8i16", element_type, 8);
+
+ element_type = tdesc_named_type (feature, "int8");
+ tdesc_create_vector (feature, "v16i8", element_type, 16);
+
+ type_with_fields = tdesc_create_union (feature, "vec128");
+ field_type = tdesc_named_type (feature, "uint128");
+ tdesc_add_field (type_with_fields, "uint128", field_type);
+ field_type = tdesc_named_type (feature, "v4f");
+ tdesc_add_field (type_with_fields, "v4_float", field_type);
+ field_type = tdesc_named_type (feature, "v4i32");
+ tdesc_add_field (type_with_fields, "v4_int32", field_type);
+ field_type = tdesc_named_type (feature, "v8i16");
+ tdesc_add_field (type_with_fields, "v8_int16", field_type);
+ field_type = tdesc_named_type (feature, "v16i8");
+ tdesc_add_field (type_with_fields, "v16_int8", field_type);
+
+ tdesc_create_reg (feature, "cvr0", 222, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr1", 223, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr2", 224, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr3", 225, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr4", 226, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr5", 227, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr6", 228, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr7", 229, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr8", 230, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr9", 231, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr10", 232, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr11", 233, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr12", 234, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr13", 235, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr14", 236, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr15", 237, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr16", 238, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr17", 239, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr18", 240, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr19", 241, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr20", 242, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr21", 243, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr22", 244, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr23", 245, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr24", 246, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr25", 247, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr26", 248, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr27", 249, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr28", 250, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr29", 251, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr30", 252, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr31", 253, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvscr", 254, 0, "vector", 32, "int");
+ tdesc_create_reg (feature, "cvrsave", 255, 0, "vector", 32, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.vsx");
+ tdesc_create_reg (feature, "cvs0h", 256, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs1h", 257, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs2h", 258, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs3h", 259, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs4h", 260, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs5h", 261, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs6h", 262, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs7h", 263, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs8h", 264, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs9h", 265, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs10h", 266, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs11h", 267, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs12h", 268, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs13h", 269, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs14h", 270, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs15h", 271, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs16h", 272, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs17h", 273, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs18h", 274, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs19h", 275, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs20h", 276, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs21h", 277, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs22h", 278, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs23h", 279, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs24h", 280, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs25h", 281, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs26h", 282, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs27h", 283, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs28h", 284, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs29h", 285, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs30h", 286, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs31h", 287, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.ppr");
+ tdesc_create_reg (feature, "cppr", 288, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.dscr");
+ tdesc_create_reg (feature, "cdscr", 289, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.tar");
+ tdesc_create_reg (feature, "ctar", 290, 0, NULL, 64, "uint64");
+
+ tdesc_powerpc_isa207_htm_vsx32l = result;
+}
diff --git a/gdb/features/rs6000/powerpc-isa207-htm-vsx32l.xml b/gdb/features/rs6000/powerpc-isa207-htm-vsx32l.xml
new file mode 100644
index 0000000..6da85ad
--- /dev/null
+++ b/gdb/features/rs6000/powerpc-isa207-htm-vsx32l.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!DOCTYPE target SYSTEM "gdb-target.dtd">
+<target>
+ <architecture>powerpc:common</architecture>
+ <xi:include href="power-core.xml"/>
+ <xi:include href="power-fpu-isa205.xml"/>
+ <xi:include href="power-linux.xml"/>
+ <xi:include href="power-altivec.xml"/>
+ <xi:include href="power-vsx.xml"/>
+ <xi:include href="power-ppr.xml"/>
+ <xi:include href="power-dscr.xml"/>
+ <xi:include href="power-tar.xml"/>
+ <xi:include href="power-ebb.xml"/>
+ <xi:include href="power-linux-pmu.xml"/>
+ <xi:include href="power-htm-spr.xml"/>
+ <xi:include href="power-htm-core.xml"/>
+ <xi:include href="power-htm-fpu.xml"/>
+ <xi:include href="power-htm-altivec.xml"/>
+ <xi:include href="power-htm-vsx.xml"/>
+ <xi:include href="power-htm-ppr.xml"/>
+ <xi:include href="power-htm-dscr.xml"/>
+ <xi:include href="power-htm-tar.xml"/>
+</target>
diff --git a/gdb/features/rs6000/powerpc-isa207-htm-vsx64l.c b/gdb/features/rs6000/powerpc-isa207-htm-vsx64l.c
new file mode 100644
index 0000000..0d818d0
--- /dev/null
+++ b/gdb/features/rs6000/powerpc-isa207-htm-vsx64l.c
@@ -0,0 +1,396 @@
+/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
+ Original: powerpc-isa207-htm-vsx64l.xml */
+
+#include "defs.h"
+#include "osabi.h"
+#include "target-descriptions.h"
+
+struct target_desc *tdesc_powerpc_isa207_htm_vsx64l;
+static void
+initialize_tdesc_powerpc_isa207_htm_vsx64l (void)
+{
+ struct target_desc *result = allocate_target_description ();
+ set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
+
+ struct tdesc_feature *feature;
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.core");
+ tdesc_create_reg (feature, "r0", 0, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r1", 1, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r2", 2, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r3", 3, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r4", 4, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r5", 5, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r6", 6, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r7", 7, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r8", 8, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r9", 9, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r10", 10, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r11", 11, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r12", 12, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r13", 13, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r14", 14, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r15", 15, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r16", 16, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r17", 17, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r18", 18, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r19", 19, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r20", 20, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r21", 21, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r22", 22, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r23", 23, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r24", 24, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r25", 25, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r26", 26, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r27", 27, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r28", 28, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r29", 29, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r30", 30, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "r31", 31, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "pc", 64, 1, NULL, 64, "code_ptr");
+ tdesc_create_reg (feature, "msr", 65, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "lr", 67, 1, NULL, 64, "code_ptr");
+ tdesc_create_reg (feature, "ctr", 68, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "xer", 69, 1, NULL, 32, "uint32");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.fpu");
+ tdesc_create_reg (feature, "f0", 32, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f1", 33, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f2", 34, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f3", 35, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f4", 36, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f5", 37, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f6", 38, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f7", 39, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f8", 40, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f9", 41, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f10", 42, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f11", 43, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f12", 44, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f13", 45, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f14", 46, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f15", 47, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f16", 48, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f17", 49, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f18", 50, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f19", 51, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f20", 52, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f21", 53, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f22", 54, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f23", 55, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f24", 56, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f25", 57, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f26", 58, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f27", 59, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f28", 60, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f29", 61, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f30", 62, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "f31", 63, 1, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "fpscr", 70, 1, "float", 64, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.linux");
+ tdesc_create_reg (feature, "orig_r3", 71, 1, NULL, 64, "int");
+ tdesc_create_reg (feature, "trap", 72, 1, NULL, 64, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.altivec");
+ tdesc_type *element_type;
+ element_type = tdesc_named_type (feature, "ieee_single");
+ tdesc_create_vector (feature, "v4f", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int32");
+ tdesc_create_vector (feature, "v4i32", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int16");
+ tdesc_create_vector (feature, "v8i16", element_type, 8);
+
+ element_type = tdesc_named_type (feature, "int8");
+ tdesc_create_vector (feature, "v16i8", element_type, 16);
+
+ tdesc_type_with_fields *type_with_fields;
+ type_with_fields = tdesc_create_union (feature, "vec128");
+ tdesc_type *field_type;
+ field_type = tdesc_named_type (feature, "uint128");
+ tdesc_add_field (type_with_fields, "uint128", field_type);
+ field_type = tdesc_named_type (feature, "v4f");
+ tdesc_add_field (type_with_fields, "v4_float", field_type);
+ field_type = tdesc_named_type (feature, "v4i32");
+ tdesc_add_field (type_with_fields, "v4_int32", field_type);
+ field_type = tdesc_named_type (feature, "v8i16");
+ tdesc_add_field (type_with_fields, "v8_int16", field_type);
+ field_type = tdesc_named_type (feature, "v16i8");
+ tdesc_add_field (type_with_fields, "v16_int8", field_type);
+
+ tdesc_create_reg (feature, "vr0", 73, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr1", 74, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr2", 75, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr3", 76, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr4", 77, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr5", 78, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr6", 79, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr7", 80, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr8", 81, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr9", 82, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr10", 83, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr11", 84, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr12", 85, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr13", 86, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr14", 87, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr15", 88, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr16", 89, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr17", 90, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr18", 91, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr19", 92, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr20", 93, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr21", 94, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr22", 95, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr23", 96, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr24", 97, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr25", 98, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr26", 99, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr27", 100, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr28", 101, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr29", 102, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr30", 103, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vr31", 104, 1, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "vscr", 105, 1, "vector", 32, "int");
+ tdesc_create_reg (feature, "vrsave", 106, 1, "vector", 32, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.vsx");
+ tdesc_create_reg (feature, "vs0h", 107, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs1h", 108, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs2h", 109, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs3h", 110, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs4h", 111, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs5h", 112, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs6h", 113, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs7h", 114, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs8h", 115, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs9h", 116, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs10h", 117, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs11h", 118, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs12h", 119, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs13h", 120, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs14h", 121, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs15h", 122, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs16h", 123, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs17h", 124, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs18h", 125, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs19h", 126, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs20h", 127, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs21h", 128, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs22h", 129, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs23h", 130, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs24h", 131, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs25h", 132, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs26h", 133, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs27h", 134, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs28h", 135, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs29h", 136, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs30h", 137, 1, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "vs31h", 138, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.ppr");
+ tdesc_create_reg (feature, "ppr", 139, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.dscr");
+ tdesc_create_reg (feature, "dscr", 140, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.tar");
+ tdesc_create_reg (feature, "tar", 141, 1, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.ebb");
+ tdesc_create_reg (feature, "bescr", 142, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "ebbhr", 143, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "ebbrr", 144, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.linux.pmu");
+ tdesc_create_reg (feature, "mmcr0", 145, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "mmcr2", 146, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "siar", 147, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "sdar", 148, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "sier", 149, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.spr");
+ tdesc_create_reg (feature, "tfhar", 150, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "texasr", 151, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "tfiar", 152, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.core");
+ tdesc_create_reg (feature, "cr0", 153, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr1", 154, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr2", 155, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr3", 156, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr4", 157, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr5", 158, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr6", 159, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr7", 160, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr8", 161, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr9", 162, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr10", 163, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr11", 164, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr12", 165, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr13", 166, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr14", 167, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr15", 168, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr16", 169, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr17", 170, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr18", 171, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr19", 172, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr20", 173, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr21", 174, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr22", 175, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr23", 176, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr24", 177, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr25", 178, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr26", 179, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr27", 180, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr28", 181, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr29", 182, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr30", 183, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cr31", 184, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "ccr", 185, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "cxer", 186, 0, NULL, 32, "uint32");
+ tdesc_create_reg (feature, "clr", 187, 0, NULL, 64, "code_ptr");
+ tdesc_create_reg (feature, "cctr", 188, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.fpu");
+ tdesc_create_reg (feature, "cf0", 189, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf1", 190, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf2", 191, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf3", 192, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf4", 193, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf5", 194, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf6", 195, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf7", 196, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf8", 197, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf9", 198, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf10", 199, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf11", 200, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf12", 201, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf13", 202, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf14", 203, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf15", 204, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf16", 205, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf17", 206, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf18", 207, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf19", 208, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf20", 209, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf21", 210, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf22", 211, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf23", 212, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf24", 213, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf25", 214, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf26", 215, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf27", 216, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf28", 217, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf29", 218, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf30", 219, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cf31", 220, 0, NULL, 64, "ieee_double");
+ tdesc_create_reg (feature, "cfpscr", 221, 0, "float", 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.altivec");
+ element_type = tdesc_named_type (feature, "ieee_single");
+ tdesc_create_vector (feature, "v4f", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int32");
+ tdesc_create_vector (feature, "v4i32", element_type, 4);
+
+ element_type = tdesc_named_type (feature, "int16");
+ tdesc_create_vector (feature, "v8i16", element_type, 8);
+
+ element_type = tdesc_named_type (feature, "int8");
+ tdesc_create_vector (feature, "v16i8", element_type, 16);
+
+ type_with_fields = tdesc_create_union (feature, "vec128");
+ field_type = tdesc_named_type (feature, "uint128");
+ tdesc_add_field (type_with_fields, "uint128", field_type);
+ field_type = tdesc_named_type (feature, "v4f");
+ tdesc_add_field (type_with_fields, "v4_float", field_type);
+ field_type = tdesc_named_type (feature, "v4i32");
+ tdesc_add_field (type_with_fields, "v4_int32", field_type);
+ field_type = tdesc_named_type (feature, "v8i16");
+ tdesc_add_field (type_with_fields, "v8_int16", field_type);
+ field_type = tdesc_named_type (feature, "v16i8");
+ tdesc_add_field (type_with_fields, "v16_int8", field_type);
+
+ tdesc_create_reg (feature, "cvr0", 222, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr1", 223, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr2", 224, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr3", 225, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr4", 226, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr5", 227, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr6", 228, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr7", 229, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr8", 230, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr9", 231, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr10", 232, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr11", 233, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr12", 234, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr13", 235, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr14", 236, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr15", 237, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr16", 238, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr17", 239, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr18", 240, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr19", 241, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr20", 242, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr21", 243, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr22", 244, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr23", 245, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr24", 246, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr25", 247, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr26", 248, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr27", 249, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr28", 250, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr29", 251, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr30", 252, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvr31", 253, 0, NULL, 128, "vec128");
+ tdesc_create_reg (feature, "cvscr", 254, 0, "vector", 32, "int");
+ tdesc_create_reg (feature, "cvrsave", 255, 0, "vector", 32, "int");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.vsx");
+ tdesc_create_reg (feature, "cvs0h", 256, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs1h", 257, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs2h", 258, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs3h", 259, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs4h", 260, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs5h", 261, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs6h", 262, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs7h", 263, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs8h", 264, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs9h", 265, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs10h", 266, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs11h", 267, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs12h", 268, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs13h", 269, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs14h", 270, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs15h", 271, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs16h", 272, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs17h", 273, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs18h", 274, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs19h", 275, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs20h", 276, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs21h", 277, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs22h", 278, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs23h", 279, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs24h", 280, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs25h", 281, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs26h", 282, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs27h", 283, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs28h", 284, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs29h", 285, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs30h", 286, 0, NULL, 64, "uint64");
+ tdesc_create_reg (feature, "cvs31h", 287, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.ppr");
+ tdesc_create_reg (feature, "cppr", 288, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.dscr");
+ tdesc_create_reg (feature, "cdscr", 289, 0, NULL, 64, "uint64");
+
+ feature = tdesc_create_feature (result, "org.gnu.gdb.power.htm.tar");
+ tdesc_create_reg (feature, "ctar", 290, 0, NULL, 64, "uint64");
+
+ tdesc_powerpc_isa207_htm_vsx64l = result;
+}
diff --git a/gdb/features/rs6000/powerpc-isa207-htm-vsx64l.xml b/gdb/features/rs6000/powerpc-isa207-htm-vsx64l.xml
new file mode 100644
index 0000000..28a8ea2
--- /dev/null
+++ b/gdb/features/rs6000/powerpc-isa207-htm-vsx64l.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2018 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. -->
+
+<!DOCTYPE target SYSTEM "gdb-target.dtd">
+<target>
+ <architecture>powerpc:common64</architecture>
+ <xi:include href="power64-core.xml"/>
+ <xi:include href="power-fpu-isa205.xml"/>
+ <xi:include href="power64-linux.xml"/>
+ <xi:include href="power-altivec.xml"/>
+ <xi:include href="power-vsx.xml"/>
+ <xi:include href="power-ppr.xml"/>
+ <xi:include href="power-dscr.xml"/>
+ <xi:include href="power-tar.xml"/>
+ <xi:include href="power-ebb.xml"/>
+ <xi:include href="power-linux-pmu.xml"/>
+ <xi:include href="power-htm-spr.xml"/>
+ <xi:include href="power64-htm-core.xml"/>
+ <xi:include href="power-htm-fpu.xml"/>
+ <xi:include href="power-htm-altivec.xml"/>
+ <xi:include href="power-htm-vsx.xml"/>
+ <xi:include href="power-htm-ppr.xml"/>
+ <xi:include href="power-htm-dscr.xml"/>
+ <xi:include href="power-htm-tar.xml"/>
+</target>