]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[Morello] Add feature check constant for capabilities
authorLuis Machado <luis.machado@arm.com>
Thu, 5 Mar 2020 11:57:44 +0000 (08:57 -0300)
committerLuis Machado <luis.machado@linaro.org>
Tue, 20 Oct 2020 18:05:10 +0000 (15:05 -0300)
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  <luis.machado@arm.com>

* Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-cap-linux.h.
* arch/aarch64-cap-linux.h: New header file.

gdb/ChangeLog
gdb/Makefile.in
gdb/arch/aarch64-cap-linux.h [new file with mode: 0644]

index 4ae973ba063e3052eac6b4a0e9142a01344a7d90..04dd74519e99543d91209f27c57e3daab681ed02 100644 (file)
@@ -1,3 +1,8 @@
+2020-10-20  Luis Machado  <luis.machado@arm.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-cap-linux.h.
+       * arch/aarch64-cap-linux.h: New header file.
+
 2020-10-20  Luis Machado  <luis.machado@arm.com>
 
        * aarch64-tdep.h (AARCH64_DWARF_C0, AARCH64_DWARF_CSP)
index 8a160896e2c3dfbe8e95fe3f87ab3d57513e5d94..c741ab2853ad81b36c92c11c9360f3aaf56bc848 100644 (file)
@@ -1457,6 +1457,7 @@ HFILES_NO_SRCDIR = \
        xtensa-tdep.h \
        arch/aarch32.h \
        arch/aarch64.h \
+       arch/aarch64-cap-linux.h \
        arch/aarch64-insn.h \
        arch/arc.h \
        arch/arm.h \
diff --git a/gdb/arch/aarch64-cap-linux.h b/gdb/arch/aarch64-cap-linux.h
new file mode 100644 (file)
index 0000000..1445d4f
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.  */
+
+#ifndef ARCH_AARCH64_LINUX_H
+#define ARCH_AARCH64_LINUX_H
+
+/* Morello HWCAP bit.  */
+#define HWCAP2_MORELLO (1 << 19)
+
+#endif /*ARCH_AARCH64_LINUX_H */