From a6d0f2490c0c7969eb60038f01c0ee0f46e4d5fd Mon Sep 17 00:00:00 2001 From: Alan Hayward Date: Tue, 14 May 2019 10:09:05 +0100 Subject: AArch64: Add half float view to V registers AArch64 can fill the vector registers with half precision floats. Add a view for this. Add builtin type ieee half and connect this to the existing floatformats_ieee_half. gdb/ChangeLog: 2019-05-14 Alan Hayward * aarch64-tdep.c (aarch64_vnh_type): Add half view. (aarch64_vnv_type): Likewise. * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF. * common/tdesc.c: Likewise. * common/tdesc.h (enum tdesc_type_kind): Likewise. * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate. * features/aarch64-fpu.xml: Add ieee half view. * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise. * gdbtypes.c (gdbtypes_post_init): Add builtin_half * gdbtypes.h (struct builtin_type): Likewise. (struct objfile_type): Likewise. --- gdb/common/tdesc.c | 1 + gdb/common/tdesc.h | 1 + 2 files changed, 2 insertions(+) (limited to 'gdb/common') diff --git a/gdb/common/tdesc.c b/gdb/common/tdesc.c index fe63a36..f946a53 100644 --- a/gdb/common/tdesc.c +++ b/gdb/common/tdesc.c @@ -50,6 +50,7 @@ static tdesc_type_builtin tdesc_predefined_types[] = { "uint128", TDESC_TYPE_UINT128 }, { "code_ptr", TDESC_TYPE_CODE_PTR }, { "data_ptr", TDESC_TYPE_DATA_PTR }, + { "ieee_half", TDESC_TYPE_IEEE_HALF }, { "ieee_single", TDESC_TYPE_IEEE_SINGLE }, { "ieee_double", TDESC_TYPE_IEEE_DOUBLE }, { "arm_fpa_ext", TDESC_TYPE_ARM_FPA_EXT }, diff --git a/gdb/common/tdesc.h b/gdb/common/tdesc.h index a0bc633..9eb3d5e 100644 --- a/gdb/common/tdesc.h +++ b/gdb/common/tdesc.h @@ -147,6 +147,7 @@ enum tdesc_type_kind TDESC_TYPE_UINT128, TDESC_TYPE_CODE_PTR, TDESC_TYPE_DATA_PTR, + TDESC_TYPE_IEEE_HALF, TDESC_TYPE_IEEE_SINGLE, TDESC_TYPE_IEEE_DOUBLE, TDESC_TYPE_ARM_FPA_EXT, -- cgit v1.1