binutils-gdb/gdb/features/aarch64-core.c
Alan Hayward f46cd62a69 Move arch/tdesc.h to common/tdesc.h
gdb/
	* arch/amd64.h: Use common/tdesc.h.
	* arch/i386.c: Likewise.
	* arch/i386.h: Likewise.
	* arch/tic6x.c: Likewise.
	* arch/tdesc.h: Move file from here...
	* common/tdesc.h: ...to here.
	* features/aarch64-core.c: Regenerate.
	* features/aarch64-fpu.c: Regenerate.
	* features/i386/32bit-avx.c: Regenerate.
	* features/i386/32bit-avx512.c: Regenerate.
	* features/i386/32bit-core.c: Regenerate.
	* features/i386/32bit-linux.c: Regenerate.
	* features/i386/32bit-mpx.c: Regenerate.
	* features/i386/32bit-pkeys.c: Regenerate.
	* features/i386/32bit-sse.c: Regenerate.
	* features/i386/64bit-avx.c: Regenerate.
	* features/i386/64bit-avx512.c: Regenerate.
	* features/i386/64bit-core.c: Regenerate.
	* features/i386/64bit-linux.c: Regenerate.
	* features/i386/64bit-mpx.c: Regenerate.
	* features/i386/64bit-pkeys.c: Regenerate.
	* features/i386/64bit-segments.c: Regenerate.
	* features/i386/64bit-sse.c: Regenerate.
	* features/i386/x32-core.c: Regenerate.
	* features/tic6x-c6xp.c: Regenerate.
	* features/tic6x-core.c: Regenerate.
	* features/tic6x-gp.c: Regenerate.
	* target-descriptions.c: Use common/tdesc.h.
	* target-descriptions.h: Likewise.

gdbserver/
	* tdesc.c: Use common/tdesc.h.
	* tdesc.h: Likewise.
2018-02-26 11:46:57 +00:00

66 lines
3.4 KiB
C

/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: aarch64-core.xml */
#include "common/tdesc.h"
static int
create_feature_aarch64_core (struct target_desc *result, long regnum)
{
struct tdesc_feature *feature;
feature = tdesc_create_feature (result, "org.gnu.gdb.aarch64.core", "aarch64-core.xml");
tdesc_type_with_fields *type_with_fields;
type_with_fields = tdesc_create_flags (feature, "cpsr_flags", 4);
tdesc_add_flag (type_with_fields, 0, "SP");
tdesc_add_flag (type_with_fields, 1, "");
tdesc_add_bitfield (type_with_fields, "EL", 2, 3);
tdesc_add_flag (type_with_fields, 4, "nRW");
tdesc_add_flag (type_with_fields, 5, "");
tdesc_add_flag (type_with_fields, 6, "F");
tdesc_add_flag (type_with_fields, 7, "I");
tdesc_add_flag (type_with_fields, 8, "A");
tdesc_add_flag (type_with_fields, 9, "D");
tdesc_add_flag (type_with_fields, 20, "IL");
tdesc_add_flag (type_with_fields, 21, "SS");
tdesc_add_flag (type_with_fields, 28, "V");
tdesc_add_flag (type_with_fields, 29, "C");
tdesc_add_flag (type_with_fields, 30, "Z");
tdesc_add_flag (type_with_fields, 31, "N");
tdesc_create_reg (feature, "x0", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x1", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x2", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x3", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x4", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x5", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x6", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x7", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x8", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x9", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x10", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x11", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x12", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x13", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x14", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x15", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x16", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x17", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x18", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x19", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x20", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x21", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x22", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x23", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x24", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x25", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x26", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x27", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x28", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x29", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "x30", regnum++, 1, NULL, 64, "int");
tdesc_create_reg (feature, "sp", regnum++, 1, NULL, 64, "data_ptr");
tdesc_create_reg (feature, "pc", regnum++, 1, NULL, 64, "code_ptr");
tdesc_create_reg (feature, "cpsr", regnum++, 1, NULL, 32, "cpsr_flags");
return regnum;
}