aboutsummaryrefslogtreecommitdiff
path: root/gdb/csky-tdep.h
diff options
context:
space:
mode:
authorJiangshuai Li <jiangshuai_li@c-sky.com>2022-07-12 09:54:58 +0800
committerJiangshuai Li <jiangshuai_li@c-sky.com>2022-07-12 09:54:58 +0800
commitd5ffc11fcbd43cb72e3ba55a52bb8df6374a8745 (patch)
tree565b673cd509684ebf35b3920d6872c2d3d99530 /gdb/csky-tdep.h
parent242f3484dba6ae27a8fb6b673c37179fd42091e5 (diff)
downloadgdb-d5ffc11fcbd43cb72e3ba55a52bb8df6374a8745.zip
gdb-d5ffc11fcbd43cb72e3ba55a52bb8df6374a8745.tar.gz
gdb-d5ffc11fcbd43cb72e3ba55a52bb8df6374a8745.tar.bz2
gdb/csky complete csky_dwarf_reg_to_regnum
For csky arch, the correspondence between Dwarf registers and GDB registers are as follows: dwarf regnos 0~31 ==> gdb regs r0~r31 dwarf regno CSKY_HI_REGNUM(36) ==> gdb reg hi dwarf regno CSKY_LO_REGNUM(37) ==> gdb reg hi dwarf regno CSKY_PC_REGNUM(72) ==> gdb reg pc dwarf regnos FV_PSEUDO_REGNO_FIRST(74)~FV_PSEUDO_REGNO_LAST(201) ==> gdb regs s0~s127 (pseudo regs for float and vector regs) other dwarf regnos have no corresponding gdb regs to them.
Diffstat (limited to 'gdb/csky-tdep.h')
-rw-r--r--gdb/csky-tdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/csky-tdep.h b/gdb/csky-tdep.h
index 4ff8a6b..4cfc0a5 100644
--- a/gdb/csky-tdep.h
+++ b/gdb/csky-tdep.h
@@ -108,6 +108,10 @@ enum csky_regnum
/* For fr0~fr15, fr16~fr31, vr0~vr15 check. */
#define CSKY_FULL16_ONEHOT_VALUE 0xffff
+/* Define for CSKY FV pseudo regs for dwarf regs. */
+#define FV_PSEUDO_REGNO_FIRST 74
+#define FV_PSEUDO_REGNO_LAST 201
+
/* Number of processor registers w/o ICE registers. */
#define CSKY_NUM_REGS (CSKY_MAX_REGS - CSKY_CRBANK_NUM_REGS)