Add AVX512 registers support to GDB and GDBserver.
[deliverable/binutils-gdb.git] / gdb / features / Makefile
1 # Copyright (C) 2007-2014 Free Software Foundation, Inc.
2
3 # This file is part of GDB.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19 # This file requires GNU make!
20
21 # This Makefile updates files in ../regformats from their XML master
22 # copies. Because this relies on xsltproc, it is not normally run
23 # during the build process; it should be run by hand when one of the
24 # affected XML files is changed, and the results should be kept in the
25 # GDB repository.
26
27 # It can also update the C files in the features directory from their
28 # XML master copies. This relies on a GDB linked with expat and
29 # configured for the correct architecture, so the files are again kept
30 # in the GDB repository. To generate C files:
31 # make GDB=/path/to/gdb XMLTOC="xml files" cfiles
32
33 WHICH = aarch64 \
34 arm-with-iwmmxt arm-with-vfpv2 arm-with-vfpv3 arm-with-neon \
35 arm-with-m arm-with-m-fpa-layout arm-with-m-vfp-d16 \
36 i386/i386 i386/i386-linux \
37 i386/i386-mmx i386/i386-mmx-linux \
38 i386/amd64 i386/amd64-linux \
39 i386/i386-avx i386/i386-avx-linux \
40 i386/i386-mpx i386/i386-mpx-linux \
41 i386/i386-avx512 i386/i386-avx512-linux \
42 i386/amd64-avx i386/amd64-avx-linux \
43 i386/amd64-mpx i386/amd64-mpx-linux \
44 i386/amd64-avx512 i386/amd64-avx512-linux \
45 i386/x32 i386/x32-linux \
46 i386/x32-avx i386/x32-avx-linux \
47 i386/x32-avx512 i386/x32-avx512-linux \
48 mips-linux mips-dsp-linux \
49 mips64-linux mips64-dsp-linux \
50 nios2-linux \
51 rs6000/powerpc-32 \
52 rs6000/powerpc-32l rs6000/powerpc-altivec32l rs6000/powerpc-e500l \
53 rs6000/powerpc-64l rs6000/powerpc-altivec64l rs6000/powerpc-vsx32l \
54 rs6000/powerpc-vsx64l rs6000/powerpc-cell32l rs6000/powerpc-cell64l \
55 s390-linux32 s390-linux64 s390x-linux64 \
56 s390-linux32v1 s390-linux64v1 s390x-linux64v1 \
57 s390-linux32v2 s390-linux64v2 s390x-linux64v2 \
58 s390-te-linux64 s390x-te-linux64 \
59 tic6x-c64xp tic6x-c64x tic6x-c62x \
60 tic6x-c64xp-linux tic6x-c64x-linux tic6x-c62x-linux
61
62 # Record which registers should be sent to GDB by default after stop.
63 aarch64-expedite = x29,sp,pc
64 arm-expedite = r11,sp,pc
65 i386/i386-expedite = ebp,esp,eip
66 i386/i386-linux-expedite = ebp,esp,eip
67 i386/amd64-expedite = rbp,rsp,rip
68 i386/amd64-linux-expedite = rbp,rsp,rip
69 i386/i386-avx-expedite = ebp,esp,eip
70 i386/i386-avx-linux-expedite = ebp,esp,eip
71 i386/i386-mpx-expedite = ebp,esp,eip
72 i386/i386-mpx-linux-expedite = ebp,esp,eip
73 i386/i386-avx512-expedite = ebp,esp,eip
74 i386/i386-avx512-linux-expedite = ebp,esp,eip
75 i386/i386-mmx-expedite = ebp,esp,eip
76 i386/i386-mmx-linux-expedite = ebp,esp,eip
77 i386/amd64-avx-expedite = rbp,rsp,rip
78 i386/amd64-avx-linux-expedite = rbp,rsp,rip
79 i386/amd64-mpx-expedite = rbp,rsp,rip
80 i386/amd64-mpx-linux-expedite = rbp,rsp,rip
81 i386/amd64-avx512-expedite = rbp,rsp,rip
82 i386/amd64-avx512-linux-expedite = rbp,rsp,rip
83 i386/x32-expedite = rbp,rsp,rip
84 i386/x32-linux-expedite = rbp,rsp,rip
85 i386/x32-avx-expedite = rbp,rsp,rip
86 i386/x32-avx-linux-expedite = rbp,rsp,rip
87 i386/x32-avx512-expedite = rbp,rsp,rip
88 i386/x32-avx512-linux-expedite = rbp,rsp,rip
89 mips-expedite = r29,pc
90 mips-dsp-expedite = r29,pc
91 mips64-expedite = r29,pc
92 mips64-dsp-expedite = r29,pc
93 nios2-linux-expedite = sp,pc
94 powerpc-expedite = r1,pc
95 rs6000/powerpc-cell32l-expedite = r1,pc,r0,orig_r3,r4
96 rs6000/powerpc-cell64l-expedite = r1,pc,r0,orig_r3,r4
97 s390-linux32-expedite = r14,r15,pswa
98 s390-linux32v1-expedite = r14,r15,pswa
99 s390-linux32v2-expedite = r14,r15,pswa
100 s390-linux64-expedite = r14l,r15l,pswa
101 s390-linux64v1-expedite = r14l,r15l,pswa
102 s390-linux64v2-expedite = r14l,r15l,pswa
103 s390-te-linux64-expedite = r14,r15,pswa
104 s390x-linux64-expedite = r14,r15,pswa
105 s390x-linux64v1-expedite = r14,r15,pswa
106 s390x-linux64v2-expedite = r14,r15,pswa
107 s390x-te-linux64-expedite = r14,r15,pswa
108 tic6x-c64xp-expedite = A15,PC
109 tic6x-c64x-expedite = A15,PC
110 tic6x-c62x-expedite = A15,PC
111 tic6x-c64xp-linux-expedite = A15,PC
112 tic6x-c64x-linux-expedite = A15,PC
113 tic6x-c62x-linux-expedite = A15,PC
114
115
116 XSLTPROC = xsltproc
117 outdir = ../regformats
118 OUTPUTS = $(patsubst %,$(outdir)/%.dat,$(WHICH))
119
120 XMLTOC =
121 CFILES = $(patsubst %.xml,%.c,$(XMLTOC))
122 GDB = false
123
124 all: $(OUTPUTS)
125
126 $(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl
127 echo "# DO NOT EDIT: generated from $<" > $(outdir)/$*.tmp
128 echo "name:`echo $(notdir $*) | sed 's/-/_/g'`" >> $(outdir)/$*.tmp
129 echo "xmltarget:$(<F)" >> $(outdir)/$*.tmp
130 echo "expedite:$(if $($*-expedite),$($*-expedite),$($(firstword $(subst -, ,$(notdir $*)))-expedite))" \
131 >> $(outdir)/$*.tmp
132 $(XSLTPROC) --path "$(PWD)" --xinclude number-regs.xsl $< | \
133 $(XSLTPROC) sort-regs.xsl - | \
134 $(XSLTPROC) gdbserver-regs.xsl - >> $(outdir)/$*.tmp
135 sh ../../move-if-change $(outdir)/$*.tmp $(outdir)/$*.dat
136
137 cfiles: $(CFILES)
138 %.c: %.xml
139 $(GDB) -nx -q -batch \
140 -ex "set tdesc filename $<" -ex 'maint print c-tdesc' > $@.tmp
141 sh ../../move-if-change $@.tmp $@
142
143 # Other dependencies.
144 $(outdir)/arm-with-iwmmxt.dat: arm-core.xml xscale-iwmmxt.xml
145 $(outdir)/i386/i386.dat: i386/32bit-core.xml i386/32bit-sse.xml
146 $(outdir)/i386/i386-linux.dat: i386/32bit-core.xml i386/32bit-sse.xml \
147 i386/32bit-linux.xml
148 $(outdir)/i386/amd64.dat: i386/64bit-core.xml i386/64bit-sse.xml
149 $(outdir)/i386/amd64-linux.dat: i386/64bit-core.xml i386/64bit-sse.xml \
150 i386/64bit-linux.xml
151 $(outdir)/i386/i386-avx.dat: i386/32bit-core.xml i386/32bit-avx.xml
152 $(outdir)/i386/i386-avx-linux.dat: i386/32bit-core.xml i386/32bit-avx.xml \
153 i386/32bit-linux.xml
154 $(outdir)/i386/i386-mpx.dat: i386/32bit-core.xml i386/32bit-avx.xml \
155 i386/32bit-mpx.xml
156 $(outdir)/i386/i386-mpx-linux.dat: i386/32bit-core.xml i386/32bit-avx.xml \
157 i386/32bit-linux.xml i386/32bit-mpx.xml
158 $(outdir)/i386/i386-avx512.dat: i386/32bit-core.xml i386/32bit-avx.xml \
159 i386/32bit-mpx.xml i386/32bit-avx512.xml
160 $(outdir)/i386/i386-avx512-linux.dat: i386/32bit-core.xml i386/32bit-avx.xml \
161 i386/32bit-linux.xml i386/32bit-mpx.xml i386/32bit-avx512.xml
162 $(outdir)/i386/i386-mmx.dat: i386/32bit-core.xml
163 $(outdir)/i386/i386-mmx-linux.dat: i386/32bit-core.xml i386/32bit-linux.xml
164 $(outdir)/i386/amd64-avx.dat: i386/64bit-core.xml i386/64bit-avx.xml
165 $(outdir)/i386/amd64-avx-linux.dat: i386/64bit-core.xml i386/64bit-avx.xml \
166 i386/64bit-linux.xml
167 $(outdir)/i386/amd64-mpx-linux.dat: i386/64bit-core.xml i386/64bit-avx.xml \
168 i386/64bit-linux.xml i386/64bit-mpx.xml
169 $(outdir)/i386/amd64-mpx.dat: i386/64bit-core.xml i386/64bit-avx.xml \
170 i386/64bit-mpx.xml
171 $(outdir)/i386/amd64-avx512.dat: i386/64bit-core.xml i386/64bit-avx.xml \
172 i386/64bit-mpx.xml i386/64bit-avx512.xml
173 $(outdir)/i386/amd64-avx512-linux.dat: i386/64bit-core.xml i386/64bit-avx.xml \
174 i386/64bit-mpx.xml i386/64bit-avx512.xml \
175 i386/64bit-linux.xml
176 $(outdir)/i386/x32.dat: i386/x32-core.xml i386/64bit-sse.xml
177 $(outdir)/i386/x32-linux.dat: i386/x32-core.xml i386/64bit-sse.xml \
178 i386/64bit-linux.xml
179 $(outdir)/i386/x32-avx.dat: i386/x32-core.xml i386/64bit-avx.xml
180 $(outdir)/i386/x32-avx-linux.dat: i386/x32-core.xml i386/64bit-avx.xml \
181 i386/64bit-linux.xml
182 $(outdir)/i386/x32-avx512.dat: i386/x32-core.xml i386/64bit-avx.xml \
183 i386/64bit-mpx.xml i386/64bit-avx512.xml
184 $(outdir)/i386/x32-avx512-linux.dat: i386/x32-core.xml i386/64bit-avx.xml \
185 i386/64bit-mpx.xml i386/64bit-avx512.xml i386/64bit-linux.xml
This page took 0.031778 seconds and 4 git commands to generate.