Re-factor (i386|amd64)mpx target descriptions.

In the previous patch a new set of target descriptions
(i386|amd64)-avx-mpx were added  being same as the (i386|amd64)-mpx.
This patch removes AVX feature from  (i386|amd64)-mpx target
description set.

This way the (i386|amd64)avx_mpx(_linux|) set has AVX and MPX features
and (i386|amd64)mpx(_linux|) only MPX.

2016-04-14  Walfred Tedeschi  <walfred.tedeschi@intel.com>

	* features/i386/amd64-mpx-linux.xml: Remove AVX feature.
	* features/i386/amd64-mpx.xml: Remove AVX feature.
	* features/i386/i386-mpx-linux.xml: Remove AVX feature.
	* features/i386/i386-mpx.xml: Remove AVX feature.
	* features/i386/amd64-mpx-linux.c: Regenerate.
	* features/i386/amd64-mpx.c: Regenerate.
	* features/i386/i386-mpx-linux.c: Regenerate.
	* features/i386/i386-mpx.c: Regenerate.
	* regformats/i386/amd64-mpx-linux.dat: Regenerate.
	* regformats/i386/amd64-mpx.dat: Regenerate.
	* regformats/i386/i386-mpx-linux.dat: Regenerate.
	* regformats/i386/i386-mpx.dat: Regenerate.
This commit is contained in:
Walfred Tedeschi 2016-04-19 15:45:50 +02:00
parent 2b863f512d
commit f42bf748e4
13 changed files with 39 additions and 132 deletions

View File

@ -1,3 +1,18 @@
2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
* features/i386/amd64-mpx-linux.xml: Remove AVX feature.
* features/i386/amd64-mpx.xml: Remove AVX feature.
* features/i386/i386-mpx-linux.xml: Remove AVX feature.
* features/i386/i386-mpx.xml: Remove AVX feature.
* features/i386/amd64-mpx-linux.c: Regenerate.
* features/i386/amd64-mpx.c: Regenerate.
* features/i386/i386-mpx-linux.c: Regenerate.
* features/i386/i386-mpx.c: Regenerate.
* regformats/i386/amd64-mpx-linux.dat: Regenerate.
* regformats/i386/amd64-mpx.dat: Regenerate.
* regformats/i386/i386-mpx-linux.dat: Regenerate.
* regformats/i386/i386-mpx.dat: Regenerate.
2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
* amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):

View File

@ -151,24 +151,6 @@ initialize_tdesc_amd64_mpx_linux (void)
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.linux");
tdesc_create_reg (feature, "orig_rax", 57, 1, NULL, 64, "int");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.avx");
tdesc_create_reg (feature, "ymm0h", 58, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm1h", 59, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm2h", 60, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm3h", 61, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm4h", 62, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm5h", 63, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm6h", 64, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm7h", 65, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm8h", 66, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm9h", 67, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm10h", 68, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm11h", 69, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm12h", 70, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm13h", 71, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm14h", 72, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm15h", 73, 1, NULL, 128, "uint128");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.mpx");
type = tdesc_create_struct (feature, "br128");
field_type = tdesc_named_type (feature, "uint64");
@ -200,12 +182,12 @@ initialize_tdesc_amd64_mpx_linux (void)
field_type = tdesc_named_type (feature, "_bndcfgu");
tdesc_add_field (type, "config", field_type);
tdesc_create_reg (feature, "bnd0raw", 74, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 75, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 76, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 77, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 78, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 79, 1, NULL, 64, "status");
tdesc_create_reg (feature, "bnd0raw", 58, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 59, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 60, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 61, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 62, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 63, 1, NULL, 64, "status");
tdesc_amd64_mpx_linux = result;
}

View File

@ -14,6 +14,5 @@
<xi:include href="64bit-core.xml"/>
<xi:include href="64bit-sse.xml"/>
<xi:include href="64bit-linux.xml"/>
<xi:include href="64bit-avx.xml"/>
<xi:include href="64bit-mpx.xml"/>
</target>

View File

@ -146,24 +146,6 @@ initialize_tdesc_amd64_mpx (void)
tdesc_create_reg (feature, "xmm15", 55, 1, NULL, 128, "vec128");
tdesc_create_reg (feature, "mxcsr", 56, 1, "vector", 32, "i386_mxcsr");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.avx");
tdesc_create_reg (feature, "ymm0h", 57, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm1h", 58, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm2h", 59, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm3h", 60, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm4h", 61, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm5h", 62, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm6h", 63, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm7h", 64, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm8h", 65, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm9h", 66, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm10h", 67, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm11h", 68, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm12h", 69, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm13h", 70, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm14h", 71, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm15h", 72, 1, NULL, 128, "uint128");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.mpx");
type = tdesc_create_struct (feature, "br128");
field_type = tdesc_named_type (feature, "uint64");
@ -195,12 +177,12 @@ initialize_tdesc_amd64_mpx (void)
field_type = tdesc_named_type (feature, "_bndcfgu");
tdesc_add_field (type, "config", field_type);
tdesc_create_reg (feature, "bnd0raw", 73, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 74, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 75, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 76, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 77, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 78, 1, NULL, 64, "status");
tdesc_create_reg (feature, "bnd0raw", 57, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 58, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 59, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 60, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 61, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 62, 1, NULL, 64, "status");
tdesc_amd64_mpx = result;
}

View File

@ -12,6 +12,5 @@
<architecture>i386:x86-64</architecture>
<xi:include href="64bit-core.xml"/>
<xi:include href="64bit-sse.xml"/>
<xi:include href="64bit-avx.xml"/>
<xi:include href="64bit-mpx.xml"/>
</target>

View File

@ -135,16 +135,6 @@ initialize_tdesc_i386_mpx_linux (void)
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.linux");
tdesc_create_reg (feature, "orig_eax", 41, 1, NULL, 32, "int");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.avx");
tdesc_create_reg (feature, "ymm0h", 42, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm1h", 43, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm2h", 44, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm3h", 45, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm4h", 46, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm5h", 47, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm6h", 48, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm7h", 49, 1, NULL, 128, "uint128");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.mpx");
type = tdesc_create_struct (feature, "br128");
field_type = tdesc_named_type (feature, "uint64");
@ -176,12 +166,12 @@ initialize_tdesc_i386_mpx_linux (void)
field_type = tdesc_named_type (feature, "_bndcfgu");
tdesc_add_field (type, "config", field_type);
tdesc_create_reg (feature, "bnd0raw", 50, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 51, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 52, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 53, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 54, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 55, 1, NULL, 64, "status");
tdesc_create_reg (feature, "bnd0raw", 42, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 43, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 44, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 45, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 46, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 47, 1, NULL, 64, "status");
tdesc_i386_mpx_linux = result;
}

View File

@ -14,6 +14,5 @@
<xi:include href="32bit-core.xml"/>
<xi:include href="32bit-sse.xml"/>
<xi:include href="32bit-linux.xml"/>
<xi:include href="32bit-avx.xml"/>
<xi:include href="32bit-mpx.xml"/>
</target>

View File

@ -130,16 +130,6 @@ initialize_tdesc_i386_mpx (void)
tdesc_create_reg (feature, "xmm7", 39, 1, NULL, 128, "vec128");
tdesc_create_reg (feature, "mxcsr", 40, 1, "vector", 32, "i386_mxcsr");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.avx");
tdesc_create_reg (feature, "ymm0h", 41, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm1h", 42, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm2h", 43, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm3h", 44, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm4h", 45, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm5h", 46, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm6h", 47, 1, NULL, 128, "uint128");
tdesc_create_reg (feature, "ymm7h", 48, 1, NULL, 128, "uint128");
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.mpx");
type = tdesc_create_struct (feature, "br128");
field_type = tdesc_named_type (feature, "uint64");
@ -171,12 +161,12 @@ initialize_tdesc_i386_mpx (void)
field_type = tdesc_named_type (feature, "_bndcfgu");
tdesc_add_field (type, "config", field_type);
tdesc_create_reg (feature, "bnd0raw", 49, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 50, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 51, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 52, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 53, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 54, 1, NULL, 64, "status");
tdesc_create_reg (feature, "bnd0raw", 41, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd1raw", 42, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd2raw", 43, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bnd3raw", 44, 1, NULL, 128, "br128");
tdesc_create_reg (feature, "bndcfgu", 45, 1, NULL, 64, "cfgu");
tdesc_create_reg (feature, "bndstatus", 46, 1, NULL, 64, "status");
tdesc_i386_mpx = result;
}

View File

@ -12,6 +12,5 @@
<architecture>i386</architecture>
<xi:include href="32bit-core.xml"/>
<xi:include href="32bit-sse.xml"/>
<xi:include href="32bit-avx.xml"/>
<xi:include href="32bit-mpx.xml"/>
</target>

View File

@ -61,22 +61,6 @@ expedite:rbp,rsp,rip
128:xmm15
32:mxcsr
64:orig_rax
128:ymm0h
128:ymm1h
128:ymm2h
128:ymm3h
128:ymm4h
128:ymm5h
128:ymm6h
128:ymm7h
128:ymm8h
128:ymm9h
128:ymm10h
128:ymm11h
128:ymm12h
128:ymm13h
128:ymm14h
128:ymm15h
128:bnd0raw
128:bnd1raw
128:bnd2raw

View File

@ -60,22 +60,6 @@ expedite:rbp,rsp,rip
128:xmm14
128:xmm15
32:mxcsr
128:ymm0h
128:ymm1h
128:ymm2h
128:ymm3h
128:ymm4h
128:ymm5h
128:ymm6h
128:ymm7h
128:ymm8h
128:ymm9h
128:ymm10h
128:ymm11h
128:ymm12h
128:ymm13h
128:ymm14h
128:ymm15h
128:bnd0raw
128:bnd1raw
128:bnd2raw

View File

@ -45,14 +45,6 @@ expedite:ebp,esp,eip
128:xmm7
32:mxcsr
32:orig_eax
128:ymm0h
128:ymm1h
128:ymm2h
128:ymm3h
128:ymm4h
128:ymm5h
128:ymm6h
128:ymm7h
128:bnd0raw
128:bnd1raw
128:bnd2raw

View File

@ -44,14 +44,6 @@ expedite:ebp,esp,eip
128:xmm6
128:xmm7
32:mxcsr
128:ymm0h
128:ymm1h
128:ymm2h
128:ymm3h
128:ymm4h
128:ymm5h
128:ymm6h
128:ymm7h
128:bnd0raw
128:bnd1raw
128:bnd2raw