aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
diff options
context:
space:
mode:
authorPhilipp Rudo <prudo@linux.vnet.ibm.com>2017-02-07 14:17:08 +0100
committerAndreas Arnez <arnez@linux.vnet.ibm.com>2017-02-07 16:25:55 +0100
commit654305d228a615c9c4c6654a43f3815a8bdc14d0 (patch)
tree420d9712edb952efa634834484ab67619d92fdc7 /gdb/s390-tdep.c
parent368915f5f11ca16d323a28f8ab6860639e56eb06 (diff)
downloadgdb-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/s390-tdep.c')
-rw-r--r--gdb/s390-tdep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index 8c49b06..df248a6 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -915,9 +915,11 @@ static const short s390_dwarf_regmap[] =
S390_F8_REGNUM, S390_F10_REGNUM, S390_F12_REGNUM, S390_F14_REGNUM,
S390_F9_REGNUM, S390_F11_REGNUM, S390_F13_REGNUM, S390_F15_REGNUM,
- /* 32-47: Control Registers (not mapped). */
- -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1,
+ /* 32-47: Control Registers. */
+ S390_CR0_REGNUM, S390_CR1_REGNUM, S390_CR2_REGNUM, S390_CR3_REGNUM,
+ S390_CR4_REGNUM, S390_CR5_REGNUM, S390_CR6_REGNUM, S390_CR7_REGNUM,
+ S390_CR8_REGNUM, S390_CR9_REGNUM, S390_CR10_REGNUM, S390_CR11_REGNUM,
+ S390_CR12_REGNUM, S390_CR13_REGNUM, S390_CR14_REGNUM, S390_CR15_REGNUM,
/* 48-63: Access Registers. */
S390_A0_REGNUM, S390_A1_REGNUM, S390_A2_REGNUM, S390_A3_REGNUM,