GDB (API)
|
00001 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: 00002 Original: aarch64.xml */ 00003 00004 #include "defs.h" 00005 #include "osabi.h" 00006 #include "target-descriptions.h" 00007 00008 struct target_desc *tdesc_aarch64; 00009 static void 00010 initialize_tdesc_aarch64 (void) 00011 { 00012 struct target_desc *result = allocate_target_description (); 00013 struct tdesc_feature *feature; 00014 struct tdesc_type *field_type; 00015 struct tdesc_type *type; 00016 00017 set_tdesc_architecture (result, bfd_scan_arch ("aarch64")); 00018 00019 feature = tdesc_create_feature (result, "org.gnu.gdb.aarch64.core"); 00020 tdesc_create_reg (feature, "x0", 0, 1, NULL, 64, "int"); 00021 tdesc_create_reg (feature, "x1", 1, 1, NULL, 64, "int"); 00022 tdesc_create_reg (feature, "x2", 2, 1, NULL, 64, "int"); 00023 tdesc_create_reg (feature, "x3", 3, 1, NULL, 64, "int"); 00024 tdesc_create_reg (feature, "x4", 4, 1, NULL, 64, "int"); 00025 tdesc_create_reg (feature, "x5", 5, 1, NULL, 64, "int"); 00026 tdesc_create_reg (feature, "x6", 6, 1, NULL, 64, "int"); 00027 tdesc_create_reg (feature, "x7", 7, 1, NULL, 64, "int"); 00028 tdesc_create_reg (feature, "x8", 8, 1, NULL, 64, "int"); 00029 tdesc_create_reg (feature, "x9", 9, 1, NULL, 64, "int"); 00030 tdesc_create_reg (feature, "x10", 10, 1, NULL, 64, "int"); 00031 tdesc_create_reg (feature, "x11", 11, 1, NULL, 64, "int"); 00032 tdesc_create_reg (feature, "x12", 12, 1, NULL, 64, "int"); 00033 tdesc_create_reg (feature, "x13", 13, 1, NULL, 64, "int"); 00034 tdesc_create_reg (feature, "x14", 14, 1, NULL, 64, "int"); 00035 tdesc_create_reg (feature, "x15", 15, 1, NULL, 64, "int"); 00036 tdesc_create_reg (feature, "x16", 16, 1, NULL, 64, "int"); 00037 tdesc_create_reg (feature, "x17", 17, 1, NULL, 64, "int"); 00038 tdesc_create_reg (feature, "x18", 18, 1, NULL, 64, "int"); 00039 tdesc_create_reg (feature, "x19", 19, 1, NULL, 64, "int"); 00040 tdesc_create_reg (feature, "x20", 20, 1, NULL, 64, "int"); 00041 tdesc_create_reg (feature, "x21", 21, 1, NULL, 64, "int"); 00042 tdesc_create_reg (feature, "x22", 22, 1, NULL, 64, "int"); 00043 tdesc_create_reg (feature, "x23", 23, 1, NULL, 64, "int"); 00044 tdesc_create_reg (feature, "x24", 24, 1, NULL, 64, "int"); 00045 tdesc_create_reg (feature, "x25", 25, 1, NULL, 64, "int"); 00046 tdesc_create_reg (feature, "x26", 26, 1, NULL, 64, "int"); 00047 tdesc_create_reg (feature, "x27", 27, 1, NULL, 64, "int"); 00048 tdesc_create_reg (feature, "x28", 28, 1, NULL, 64, "int"); 00049 tdesc_create_reg (feature, "x29", 29, 1, NULL, 64, "int"); 00050 tdesc_create_reg (feature, "x30", 30, 1, NULL, 64, "int"); 00051 tdesc_create_reg (feature, "sp", 31, 1, NULL, 64, "data_ptr"); 00052 tdesc_create_reg (feature, "pc", 32, 1, NULL, 64, "code_ptr"); 00053 tdesc_create_reg (feature, "cpsr", 33, 1, NULL, 32, "int"); 00054 00055 feature = tdesc_create_feature (result, "org.gnu.gdb.aarch64.fpu"); 00056 field_type = tdesc_named_type (feature, "ieee_double"); 00057 tdesc_create_vector (feature, "v2d", field_type, 2); 00058 00059 field_type = tdesc_named_type (feature, "uint64"); 00060 tdesc_create_vector (feature, "v2u", field_type, 2); 00061 00062 field_type = tdesc_named_type (feature, "int64"); 00063 tdesc_create_vector (feature, "v2i", field_type, 2); 00064 00065 field_type = tdesc_named_type (feature, "ieee_single"); 00066 tdesc_create_vector (feature, "v4f", field_type, 4); 00067 00068 field_type = tdesc_named_type (feature, "uint32"); 00069 tdesc_create_vector (feature, "v4u", field_type, 4); 00070 00071 field_type = tdesc_named_type (feature, "int32"); 00072 tdesc_create_vector (feature, "v4i", field_type, 4); 00073 00074 field_type = tdesc_named_type (feature, "uint16"); 00075 tdesc_create_vector (feature, "v8u", field_type, 8); 00076 00077 field_type = tdesc_named_type (feature, "int16"); 00078 tdesc_create_vector (feature, "v8i", field_type, 8); 00079 00080 field_type = tdesc_named_type (feature, "uint8"); 00081 tdesc_create_vector (feature, "v16u", field_type, 16); 00082 00083 field_type = tdesc_named_type (feature, "int8"); 00084 tdesc_create_vector (feature, "v16i", field_type, 16); 00085 00086 field_type = tdesc_named_type (feature, "uint128"); 00087 tdesc_create_vector (feature, "v1u", field_type, 1); 00088 00089 field_type = tdesc_named_type (feature, "int128"); 00090 tdesc_create_vector (feature, "v1i", field_type, 1); 00091 00092 type = tdesc_create_union (feature, "vnd"); 00093 field_type = tdesc_named_type (feature, "v2d"); 00094 tdesc_add_field (type, "f", field_type); 00095 field_type = tdesc_named_type (feature, "v2u"); 00096 tdesc_add_field (type, "u", field_type); 00097 field_type = tdesc_named_type (feature, "v2i"); 00098 tdesc_add_field (type, "s", field_type); 00099 00100 type = tdesc_create_union (feature, "vns"); 00101 field_type = tdesc_named_type (feature, "v4f"); 00102 tdesc_add_field (type, "f", field_type); 00103 field_type = tdesc_named_type (feature, "v4u"); 00104 tdesc_add_field (type, "u", field_type); 00105 field_type = tdesc_named_type (feature, "v4i"); 00106 tdesc_add_field (type, "s", field_type); 00107 00108 type = tdesc_create_union (feature, "vnh"); 00109 field_type = tdesc_named_type (feature, "v8u"); 00110 tdesc_add_field (type, "u", field_type); 00111 field_type = tdesc_named_type (feature, "v8i"); 00112 tdesc_add_field (type, "s", field_type); 00113 00114 type = tdesc_create_union (feature, "vnb"); 00115 field_type = tdesc_named_type (feature, "v16u"); 00116 tdesc_add_field (type, "u", field_type); 00117 field_type = tdesc_named_type (feature, "v16i"); 00118 tdesc_add_field (type, "s", field_type); 00119 00120 type = tdesc_create_union (feature, "vnq"); 00121 field_type = tdesc_named_type (feature, "v1u"); 00122 tdesc_add_field (type, "u", field_type); 00123 field_type = tdesc_named_type (feature, "v1i"); 00124 tdesc_add_field (type, "s", field_type); 00125 00126 type = tdesc_create_union (feature, "aarch64v"); 00127 field_type = tdesc_named_type (feature, "vnd"); 00128 tdesc_add_field (type, "d", field_type); 00129 field_type = tdesc_named_type (feature, "vns"); 00130 tdesc_add_field (type, "s", field_type); 00131 field_type = tdesc_named_type (feature, "vnh"); 00132 tdesc_add_field (type, "h", field_type); 00133 field_type = tdesc_named_type (feature, "vnb"); 00134 tdesc_add_field (type, "b", field_type); 00135 field_type = tdesc_named_type (feature, "vnq"); 00136 tdesc_add_field (type, "q", field_type); 00137 00138 tdesc_create_reg (feature, "v0", 34, 1, NULL, 128, "aarch64v"); 00139 tdesc_create_reg (feature, "v1", 35, 1, NULL, 128, "aarch64v"); 00140 tdesc_create_reg (feature, "v2", 36, 1, NULL, 128, "aarch64v"); 00141 tdesc_create_reg (feature, "v3", 37, 1, NULL, 128, "aarch64v"); 00142 tdesc_create_reg (feature, "v4", 38, 1, NULL, 128, "aarch64v"); 00143 tdesc_create_reg (feature, "v5", 39, 1, NULL, 128, "aarch64v"); 00144 tdesc_create_reg (feature, "v6", 40, 1, NULL, 128, "aarch64v"); 00145 tdesc_create_reg (feature, "v7", 41, 1, NULL, 128, "aarch64v"); 00146 tdesc_create_reg (feature, "v8", 42, 1, NULL, 128, "aarch64v"); 00147 tdesc_create_reg (feature, "v9", 43, 1, NULL, 128, "aarch64v"); 00148 tdesc_create_reg (feature, "v10", 44, 1, NULL, 128, "aarch64v"); 00149 tdesc_create_reg (feature, "v11", 45, 1, NULL, 128, "aarch64v"); 00150 tdesc_create_reg (feature, "v12", 46, 1, NULL, 128, "aarch64v"); 00151 tdesc_create_reg (feature, "v13", 47, 1, NULL, 128, "aarch64v"); 00152 tdesc_create_reg (feature, "v14", 48, 1, NULL, 128, "aarch64v"); 00153 tdesc_create_reg (feature, "v15", 49, 1, NULL, 128, "aarch64v"); 00154 tdesc_create_reg (feature, "v16", 50, 1, NULL, 128, "aarch64v"); 00155 tdesc_create_reg (feature, "v17", 51, 1, NULL, 128, "aarch64v"); 00156 tdesc_create_reg (feature, "v18", 52, 1, NULL, 128, "aarch64v"); 00157 tdesc_create_reg (feature, "v19", 53, 1, NULL, 128, "aarch64v"); 00158 tdesc_create_reg (feature, "v20", 54, 1, NULL, 128, "aarch64v"); 00159 tdesc_create_reg (feature, "v21", 55, 1, NULL, 128, "aarch64v"); 00160 tdesc_create_reg (feature, "v22", 56, 1, NULL, 128, "aarch64v"); 00161 tdesc_create_reg (feature, "v23", 57, 1, NULL, 128, "aarch64v"); 00162 tdesc_create_reg (feature, "v24", 58, 1, NULL, 128, "aarch64v"); 00163 tdesc_create_reg (feature, "v25", 59, 1, NULL, 128, "aarch64v"); 00164 tdesc_create_reg (feature, "v26", 60, 1, NULL, 128, "aarch64v"); 00165 tdesc_create_reg (feature, "v27", 61, 1, NULL, 128, "aarch64v"); 00166 tdesc_create_reg (feature, "v28", 62, 1, NULL, 128, "aarch64v"); 00167 tdesc_create_reg (feature, "v29", 63, 1, NULL, 128, "aarch64v"); 00168 tdesc_create_reg (feature, "v30", 64, 1, NULL, 128, "aarch64v"); 00169 tdesc_create_reg (feature, "v31", 65, 1, NULL, 128, "aarch64v"); 00170 tdesc_create_reg (feature, "fpsr", 66, 1, NULL, 32, "int"); 00171 tdesc_create_reg (feature, "fpcr", 67, 1, NULL, 32, "int"); 00172 00173 tdesc_aarch64 = result; 00174 }