aboutsummaryrefslogtreecommitdiff
path: root/gdb/features
diff options
context:
space:
mode:
authorWalfred Tedeschi <walfred.tedeschi@intel.com>2016-04-19 15:45:50 +0200
committerWalfred Tedeschi <walfred.tedeschi@intel.com>2016-04-19 15:45:50 +0200
commitf42bf748e417cf9120fc57d144b6eaaf3adda247 (patch)
treeb3f02315e8093cedf2e8789f385e65693d1b67e6 /gdb/features
parent2b863f512dce3c2469cf40e4559fb571b1b01658 (diff)
downloadgdb-f42bf748e417cf9120fc57d144b6eaaf3adda247.zip
gdb-f42bf748e417cf9120fc57d144b6eaaf3adda247.tar.gz
gdb-f42bf748e417cf9120fc57d144b6eaaf3adda247.tar.bz2
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.
Diffstat (limited to 'gdb/features')
-rw-r--r--gdb/features/i386/amd64-mpx-linux.c30
-rw-r--r--gdb/features/i386/amd64-mpx-linux.xml1
-rw-r--r--gdb/features/i386/amd64-mpx.c30
-rw-r--r--gdb/features/i386/amd64-mpx.xml1
-rw-r--r--gdb/features/i386/i386-mpx-linux.c22
-rw-r--r--gdb/features/i386/i386-mpx-linux.xml1
-rw-r--r--gdb/features/i386/i386-mpx.c22
-rw-r--r--gdb/features/i386/i386-mpx.xml1
8 files changed, 24 insertions, 84 deletions
diff --git a/gdb/features/i386/amd64-mpx-linux.c b/gdb/features/i386/amd64-mpx-linux.c
index ed5c5a2..a20ca4f 100644
--- a/gdb/features/i386/amd64-mpx-linux.c
+++ b/gdb/features/i386/amd64-mpx-linux.c
@@ -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;
}
diff --git a/gdb/features/i386/amd64-mpx-linux.xml b/gdb/features/i386/amd64-mpx-linux.xml
index 15e87b4..835126b 100644
--- a/gdb/features/i386/amd64-mpx-linux.xml
+++ b/gdb/features/i386/amd64-mpx-linux.xml
@@ -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>
diff --git a/gdb/features/i386/amd64-mpx.c b/gdb/features/i386/amd64-mpx.c
index af1c205..41f0e78 100644
--- a/gdb/features/i386/amd64-mpx.c
+++ b/gdb/features/i386/amd64-mpx.c
@@ -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;
}
diff --git a/gdb/features/i386/amd64-mpx.xml b/gdb/features/i386/amd64-mpx.xml
index 21b6df3..e458736 100644
--- a/gdb/features/i386/amd64-mpx.xml
+++ b/gdb/features/i386/amd64-mpx.xml
@@ -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>
diff --git a/gdb/features/i386/i386-mpx-linux.c b/gdb/features/i386/i386-mpx-linux.c
index 33f979a..298b7ff 100644
--- a/gdb/features/i386/i386-mpx-linux.c
+++ b/gdb/features/i386/i386-mpx-linux.c
@@ -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;
}
diff --git a/gdb/features/i386/i386-mpx-linux.xml b/gdb/features/i386/i386-mpx-linux.xml
index c4004d6..4228cf5 100644
--- a/gdb/features/i386/i386-mpx-linux.xml
+++ b/gdb/features/i386/i386-mpx-linux.xml
@@ -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>
diff --git a/gdb/features/i386/i386-mpx.c b/gdb/features/i386/i386-mpx.c
index 28f51ac..c19af55 100644
--- a/gdb/features/i386/i386-mpx.c
+++ b/gdb/features/i386/i386-mpx.c
@@ -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;
}
diff --git a/gdb/features/i386/i386-mpx.xml b/gdb/features/i386/i386-mpx.xml
index 52a68db..c1806cb 100644
--- a/gdb/features/i386/i386-mpx.xml
+++ b/gdb/features/i386/i386-mpx.xml
@@ -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>