From 4e90d169bde75096e7439897e01a31c078734319 Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Thu, 5 Mar 2020 08:57:44 -0300 Subject: [PATCH] [Morello] Add feature check constant for capabilities This patch adds a Morello feature check constant HWCAP2_MORELLO, as defined in the Linux Kernel. Dependencies: glibc and Kernel. gdb/ChangeLog: 2020-10-20 Luis Machado * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-cap-linux.h. * arch/aarch64-cap-linux.h: New header file. --- gdb/Makefile.in | 1 + gdb/arch/aarch64-cap-linux.h | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 gdb/arch/aarch64-cap-linux.h diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 55f0a23fbac..dd83e9bcad7 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1491,6 +1491,7 @@ HFILES_NO_SRCDIR = \ xtensa-tdep.h \ arch/aarch32.h \ arch/aarch64.h \ + arch/aarch64-cap-linux.h \ arch/aarch64-insn.h \ arch/aarch64-mte-linux.h \ arch/arc.h \ diff --git a/gdb/arch/aarch64-cap-linux.h b/gdb/arch/aarch64-cap-linux.h new file mode 100644 index 00000000000..1445d4f0ce9 --- /dev/null +++ b/gdb/arch/aarch64-cap-linux.h @@ -0,0 +1,26 @@ +/* Common target-dependent Linux functionality for AArch64. + + Copyright (C) 2020 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef ARCH_AARCH64_LINUX_H +#define ARCH_AARCH64_LINUX_H + +/* Morello HWCAP bit. */ +#define HWCAP2_MORELLO (1 << 19) + +#endif /*ARCH_AARCH64_LINUX_H */ -- 2.47.2