mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
95228a0d79
No code uses the new descriptions yet. gdb/ * aarch64-linux-nat.c (aarch64_linux_read_description): Add parmeter zero. * aarch64-linux-tdep.c (aarch64_linux_core_read_description): Likewise. * aarch64-tdep.c (tdesc_aarch64_list): Add. (aarch64_read_description): Use VQ to index tdesc_aarch64_list. (aarch64_gdbarch_init): Add parmeter zero. * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. * arch/aarch64.c (aarch64_create_target_description): Check VQ. * arch/aarch64.h (aarch64_create_target_description): Add VQ. parmeter. * doc/gdb.texinfo: Describe SVE feature * features/aarch64-sve.c: New file. gdbserver/ * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add null VQ.
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
/* GNU/Linux/aarch64 specific target description, for the remote server
|
|
for GDB.
|
|
Copyright (C) 2017-2018 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/>. */
|
|
|
|
#include "server.h"
|
|
#include "tdesc.h"
|
|
#include "arch/aarch64.h"
|
|
#include "linux-aarch32-low.h"
|
|
|
|
/* Create the aarch64 target description. */
|
|
|
|
const target_desc *
|
|
aarch64_linux_read_description ()
|
|
{
|
|
static target_desc *aarch64_tdesc = NULL;
|
|
target_desc **tdesc = &aarch64_tdesc;
|
|
|
|
if (*tdesc == NULL)
|
|
{
|
|
/* SVE not yet supported. */
|
|
*tdesc = aarch64_create_target_description (0);
|
|
|
|
static const char *expedite_regs_aarch64[] = { "x29", "sp", "pc", NULL };
|
|
init_target_desc (*tdesc, expedite_regs_aarch64);
|
|
}
|
|
|
|
return *tdesc;
|
|
}
|