diff options
author | Philipp Rudo <prudo@linux.vnet.ibm.com> | 2017-02-07 14:17:08 +0100 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2017-02-07 16:25:55 +0100 |
commit | 654305d228a615c9c4c6654a43f3815a8bdc14d0 (patch) | |
tree | 420d9712edb952efa634834484ab67619d92fdc7 /gdb/features/s390x-vxcr-linux64.xml | |
parent | 368915f5f11ca16d323a28f8ab6860639e56eb06 (diff) | |
download | gdb-654305d228a615c9c4c6654a43f3815a8bdc14d0.zip gdb-654305d228a615c9c4c6654a43f3815a8bdc14d0.tar.gz gdb-654305d228a615c9c4c6654a43f3815a8bdc14d0.tar.bz2 |
Add privileged registers for s390x
The Linux kernel and thus the linux-kernel target needs access to S390x's
privileged registers. Define new features and prepare s390-tdep.* to use
them in new Linux kernel code.
gdb/ChangeLog:
* features/s390-cr.xml: New file.
* features/s390x-cr-linux64.xml: New file
* features/s390x-vxcr-linux64.xml: New file
* features/Makefile: Add s390x-cr-linux64-expedite and
s390x-vxcr-linux64-expedite
(WICH): Add s390x-cr-linux64.xml and s390x-vxcr-linux64.xml
(XMLTOC): Add s390x-cr-linux64.xml and s390x-vxcr-linux64.xml
* features/s390x-cr-linux64.c: Generated.
* features/s390x-vxcr-linux64.c: Generated.
* regformats/s390x-cr-linux64.dat: Generated.
* regformats/s390x-vxcr-linux64.dat: Generated.
* s390-tdep.h: Define regnums for control registers.
(S390_NUM_REGS): Adjust.
* s390-tdep.c: (s390_dwarf_regmat): Add control registers.
Diffstat (limited to 'gdb/features/s390x-vxcr-linux64.xml')
-rw-r--r-- | gdb/features/s390x-vxcr-linux64.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/features/s390x-vxcr-linux64.xml b/gdb/features/s390x-vxcr-linux64.xml new file mode 100644 index 0000000..30a1cebf --- /dev/null +++ b/gdb/features/s390x-vxcr-linux64.xml @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2016 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. --> + +<!-- S/390 64-bit kernel-level code. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>s390:64-bit</architecture> + <xi:include href="s390x-core64.xml"/> + <xi:include href="s390-acr.xml"/> + <xi:include href="s390-fpr.xml"/> + <xi:include href="s390-vx.xml"/> + <xi:include href="s390-cr.xml"/> + + <feature name="org.gnu.gdb.s390.privileged"> + <reg name="timer" bitsize="64" type="uint64" group="system"/> + <reg name="todcmp" bitsize="64" type="uint64" group="system"/> + <reg name="todpreg" bitsize="32" type="uint32" group="system"/> + <reg name="prefix" bitsize="32" type="uint32" group="system"/> + </feature> +</target> |