mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
89abbcc26d
Add Arm to the list of feature target description targets and generate the relevant C files. Add arm-m-profile-with-fpa.xml as the feature version of the exisiting arm-with-m-fpa-layout.xml. Add extra comments to the Makefile for readability. New files are not yet used. gdb/ChangeLog: * features/Makefile: Use feature target descriptions for Arm. * features/arm/arm-core.c: Generate new file. * features/arm/arm-fpa.c: Likewise. * features/arm/arm-m-profile-with-fpa.xml: Likewise. * features/arm/arm-m-profile.c: Likewise. * features/arm/arm-vfpv2.c: Likewise. * features/arm/arm-vfpv3.c: Likewise. * features/arm/xscale-iwmmxt.c: Likewise. * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
58 lines
2.9 KiB
C
58 lines
2.9 KiB
C
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
|
|
Original: xscale-iwmmxt.xml */
|
|
|
|
#include "gdbsupport/tdesc.h"
|
|
|
|
static int
|
|
create_feature_arm_xscale_iwmmxt (struct target_desc *result, long regnum)
|
|
{
|
|
struct tdesc_feature *feature;
|
|
|
|
feature = tdesc_create_feature (result, "org.gnu.gdb.xscale.iwmmxt");
|
|
tdesc_type *element_type;
|
|
element_type = tdesc_named_type (feature, "uint8");
|
|
tdesc_create_vector (feature, "iwmmxt_v8u8", element_type, 8);
|
|
|
|
element_type = tdesc_named_type (feature, "uint16");
|
|
tdesc_create_vector (feature, "iwmmxt_v4u16", element_type, 4);
|
|
|
|
element_type = tdesc_named_type (feature, "uint32");
|
|
tdesc_create_vector (feature, "iwmmxt_v2u32", element_type, 2);
|
|
|
|
tdesc_type_with_fields *type_with_fields;
|
|
type_with_fields = tdesc_create_union (feature, "iwmmxt_vec64i");
|
|
tdesc_type *field_type;
|
|
field_type = tdesc_named_type (feature, "iwmmxt_v8u8");
|
|
tdesc_add_field (type_with_fields, "u8", field_type);
|
|
field_type = tdesc_named_type (feature, "iwmmxt_v4u16");
|
|
tdesc_add_field (type_with_fields, "u16", field_type);
|
|
field_type = tdesc_named_type (feature, "iwmmxt_v2u32");
|
|
tdesc_add_field (type_with_fields, "u32", field_type);
|
|
field_type = tdesc_named_type (feature, "uint64");
|
|
tdesc_add_field (type_with_fields, "u64", field_type);
|
|
|
|
tdesc_create_reg (feature, "wR0", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR1", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR2", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR3", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR4", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR5", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR6", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR7", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR8", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR9", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR10", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR11", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR12", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR13", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR14", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wR15", regnum++, 1, NULL, 64, "iwmmxt_vec64i");
|
|
tdesc_create_reg (feature, "wCSSF", regnum++, 1, "vector", 32, "int");
|
|
tdesc_create_reg (feature, "wCASF", regnum++, 1, "vector", 32, "int");
|
|
tdesc_create_reg (feature, "wCGR0", regnum++, 1, "vector", 32, "int");
|
|
tdesc_create_reg (feature, "wCGR1", regnum++, 1, "vector", 32, "int");
|
|
tdesc_create_reg (feature, "wCGR2", regnum++, 1, "vector", 32, "int");
|
|
tdesc_create_reg (feature, "wCGR3", regnum++, 1, "vector", 32, "int");
|
|
return regnum;
|
|
}
|