diff options
author | Jiangshuai Li <jiangshuai_li@c-sky.com> | 2022-06-01 14:46:01 +0800 |
---|---|---|
committer | Jiangshuai Li <jiangshuai_li@c-sky.com> | 2022-06-01 14:46:01 +0800 |
commit | 68538bbeaa9f6c5ebe68ce31465e44c46393e170 (patch) | |
tree | 6831bf12b8ad9c6e72359246d7a361c3ccf98d0a /gdb/csky-tdep.h | |
parent | b0de9ed86f3af84fbd636f94a58b9c4ad7f4e743 (diff) | |
download | fsf-binutils-gdb-68538bbeaa9f6c5ebe68ce31465e44c46393e170.zip fsf-binutils-gdb-68538bbeaa9f6c5ebe68ce31465e44c46393e170.tar.gz fsf-binutils-gdb-68538bbeaa9f6c5ebe68ce31465e44c46393e170.tar.bz2 |
gdb:csky save fpu and vdsp info to struct csky_gdbarch_tdep
First, add three variables fpu_abi, fpu_hardfp and vdsp_version
to csky_gdbarch_tdep. They will be initialized from info.abfd in
cskg_gdbarch_init.
Now, they are just used to find a candidate among the list of pre-declared
architectures
Later, they will be used in gdbarch_return_value and gdbarch_push_dummy_call
for funtions described below:
fpu_abi: to check if the bfd is using VAL_CSKY_FPU_ABI_HARD or
VAL_CSKY_FPU_ABI_SOFT
fpu_hardfp: to check if the bfd is using VAL_CSKY_FPU_HARDFP_SINGLE
or VAL_CSKY_FPU_HARDFP_DOUBLE
vdsp_version: to check if a function is returned with CSKY_VRET_REGNUM
Diffstat (limited to 'gdb/csky-tdep.h')
-rw-r--r-- | gdb/csky-tdep.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/csky-tdep.h b/gdb/csky-tdep.h index 7898e0d..d0e5fc0 100644 --- a/gdb/csky-tdep.h +++ b/gdb/csky-tdep.h @@ -33,7 +33,10 @@ enum lr_type_t /* Target-dependent structure in gdbarch. */ struct csky_gdbarch_tdep : gdbarch_tdep { - /* This is Unused. */ + /* Save FPU, VDSP ABI. */ + unsigned int fpu_abi; + unsigned int fpu_hardfp; + unsigned int vdsp_version; }; /* Instruction sizes. */ |