mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
Add Aarch64 SVE dwarf regnums
This is as per the spec: https://developer.arm.com/products/architecture/a-profile/docs/100985/0000 gdb/ * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. (AARCH64_DWARF_SVE_FFR): Likewise. (AARCH64_DWARF_SVE_P0): Likewise. (AARCH64_DWARF_SVE_Z0): Likewise.
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
2018-06-11 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
|
||||
* aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
|
||||
(AARCH64_DWARF_SVE_FFR): Likewise.
|
||||
(AARCH64_DWARF_SVE_P0): Likewise.
|
||||
(AARCH64_DWARF_SVE_Z0): Likewise.
|
||||
|
||||
2018-06-11 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* common/common-regcache.h (raw_compare): New function.
|
||||
|
@ -1805,9 +1805,20 @@ aarch64_dwarf_reg_to_regnum (struct gdbarch *gdbarch, int reg)
|
||||
if (reg >= AARCH64_DWARF_V0 && reg <= AARCH64_DWARF_V0 + 31)
|
||||
return AARCH64_V0_REGNUM + reg - AARCH64_DWARF_V0;
|
||||
|
||||
if (reg == AARCH64_DWARF_SVE_VG)
|
||||
return AARCH64_SVE_VG_REGNUM;
|
||||
|
||||
if (reg == AARCH64_DWARF_SVE_FFR)
|
||||
return AARCH64_SVE_FFR_REGNUM;
|
||||
|
||||
if (reg >= AARCH64_DWARF_SVE_P0 && reg <= AARCH64_DWARF_SVE_P0 + 15)
|
||||
return AARCH64_SVE_P0_REGNUM + reg - AARCH64_DWARF_SVE_P0;
|
||||
|
||||
if (reg >= AARCH64_DWARF_SVE_Z0 && reg <= AARCH64_DWARF_SVE_Z0 + 15)
|
||||
return AARCH64_SVE_Z0_REGNUM + reg - AARCH64_DWARF_SVE_Z0;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/* Implement the "print_insn" gdbarch method. */
|
||||
|
||||
|
@ -32,6 +32,10 @@ struct regset;
|
||||
#define AARCH64_DWARF_X0 0
|
||||
#define AARCH64_DWARF_SP 31
|
||||
#define AARCH64_DWARF_V0 64
|
||||
#define AARCH64_DWARF_SVE_VG 46
|
||||
#define AARCH64_DWARF_SVE_FFR 47
|
||||
#define AARCH64_DWARF_SVE_P0 48
|
||||
#define AARCH64_DWARF_SVE_Z0 96
|
||||
|
||||
/* Size of integer registers. */
|
||||
#define X_REGISTER_SIZE 8
|
||||
|
Reference in New Issue
Block a user