diff options
Diffstat (limited to 'gdb/xtensa-tdep.h')
-rw-r--r-- | gdb/xtensa-tdep.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h index b6ed965..4b21908 100644 --- a/gdb/xtensa-tdep.h +++ b/gdb/xtensa-tdep.h @@ -264,7 +264,9 @@ struct gdbarch_tdep #define REGMAP_BYTES (gdbarch_tdep (current_gdbarch)->regmap_bytes) #define A0_BASE (gdbarch_tdep (current_gdbarch)->a0_base) #define AR_BASE (gdbarch_tdep (current_gdbarch)->ar_base) -#define FP_ALIAS (NUM_REGS + NUM_PSEUDO_REGS) +#define FP_ALIAS \ + (gdbarch_num_regs (current_gdbarch) \ + + gdbarch_num_pseudo_regs (current_gdbarch)) #define CALL_ABI (gdbarch_tdep (current_gdbarch)->call_abi) #define NUM_CONTEXTS (gdbarch_tdep (current_gdbarch)->num_contexts) |