diff options
Diffstat (limited to 'gdb/features/arm-with-iwmmxt.c')
-rw-r--r-- | gdb/features/arm-with-iwmmxt.c | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/gdb/features/arm-with-iwmmxt.c b/gdb/features/arm-with-iwmmxt.c index d9c5221..71bd364 100644 --- a/gdb/features/arm-with-iwmmxt.c +++ b/gdb/features/arm-with-iwmmxt.c @@ -1,7 +1,6 @@ /* THIS FILE IS GENERATED. Original: arm-with-iwmmxt.xml */ #include "defs.h" -#include "gdbtypes.h" #include "target-descriptions.h" struct target_desc *tdesc_arm_with_iwmmxt; @@ -10,7 +9,7 @@ initialize_tdesc_arm_with_iwmmxt (void) { struct target_desc *result = allocate_target_description (); struct tdesc_feature *feature; - struct type *field_type, *type; + struct tdesc_type *field_type, *type; set_tdesc_architecture (result, bfd_scan_arch ("iwmmxt")); @@ -35,32 +34,23 @@ initialize_tdesc_arm_with_iwmmxt (void) feature = tdesc_create_feature (result, "org.gnu.gdb.xscale.iwmmxt"); field_type = tdesc_named_type (feature, "uint8"); - type = init_vector_type (field_type, 8); - TYPE_NAME (type) = xstrdup ("iwmmxt_v8u8"); - tdesc_record_type (feature, type); + tdesc_create_vector (feature, "iwmmxt_v8u8", field_type, 8); field_type = tdesc_named_type (feature, "uint16"); - type = init_vector_type (field_type, 4); - TYPE_NAME (type) = xstrdup ("iwmmxt_v4u16"); - tdesc_record_type (feature, type); + tdesc_create_vector (feature, "iwmmxt_v4u16", field_type, 4); field_type = tdesc_named_type (feature, "uint32"); - type = init_vector_type (field_type, 2); - TYPE_NAME (type) = xstrdup ("iwmmxt_v2u32"); - tdesc_record_type (feature, type); + tdesc_create_vector (feature, "iwmmxt_v2u32", field_type, 2); - type = init_composite_type (NULL, TYPE_CODE_UNION); - TYPE_NAME (type) = xstrdup ("iwmmxt_vec64i"); + type = tdesc_create_union (feature, "iwmmxt_vec64i"); field_type = tdesc_named_type (feature, "iwmmxt_v8u8"); - append_composite_type_field (type, xstrdup ("u8"), field_type); + tdesc_add_field (type, "u8", field_type); field_type = tdesc_named_type (feature, "iwmmxt_v4u16"); - append_composite_type_field (type, xstrdup ("u16"), field_type); + tdesc_add_field (type, "u16", field_type); field_type = tdesc_named_type (feature, "iwmmxt_v2u32"); - append_composite_type_field (type, xstrdup ("u32"), field_type); + tdesc_add_field (type, "u32", field_type); field_type = tdesc_named_type (feature, "uint64"); - append_composite_type_field (type, xstrdup ("u64"), field_type); - TYPE_VECTOR (type) = 1; - tdesc_record_type (feature, type); + tdesc_add_field (type, "u64", field_type); tdesc_create_reg (feature, "wR0", 26, 1, NULL, 64, "iwmmxt_vec64i"); tdesc_create_reg (feature, "wR1", 27, 1, NULL, 64, "iwmmxt_vec64i"); |