aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-06-16 10:02:09 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-06-25 18:07:31 +0100
commit3b9fce9660539584e869ea2d77610434e6baa2a2 (patch)
tree77a7d44329854da2186a0ab06610794864299c15 /gdb/ChangeLog
parent865bad2602bd212875063968ae429fca8f9190d1 (diff)
downloadgdb-3b9fce9660539584e869ea2d77610434e6baa2a2.zip
gdb-3b9fce9660539584e869ea2d77610434e6baa2a2.tar.gz
gdb-3b9fce9660539584e869ea2d77610434e6baa2a2.tar.bz2
gdb/riscv: Improve support for matching against target descriptions
For the RISC-V target it is desirable if the three floating pointer status CSRs fflags, frm, and fcsr can be placed into either the FPU feature or the CSR feature. This allows different targets to build the features in a way that better reflects their target. The change to support this within GDB is fairly simple, so this is done in this commit, and some tests added to check this new functionality. gdb/ChangeLog: * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later in the file. (class riscv_pending_register_alias): Likewise. (riscv_register_feature::register_info): Change 'required_p' field to 'required', and change its type. Add 'check' member function. (riscv_register_feature::register_info::check): Define new member function. (riscv_xreg_feature): Change initialisation of 'required' field. (riscv_freg_feature): Likewise. (riscv_virtual_feature): Likewise. (riscv_csr_feature): Likewise. (riscv_check_tdesc_feature): Take extra parameter, the csr tdesc_feature, rewrite the function to use the new riscv_register_feature::register_info::check function. (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. gdb/testsuite/ChangeLog: * gdb.arch/riscv-tdesc-loading-01.xml: New file. * gdb.arch/riscv-tdesc-loading-02.xml: New file. * gdb.arch/riscv-tdesc-loading-03.xml: New file. * gdb.arch/riscv-tdesc-loading-04.xml: New file. * gdb.arch/riscv-tdesc-loading.exp: New file.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2a6cdf5..2550d64 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,23 @@
2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
+ * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
+ in the file.
+ (class riscv_pending_register_alias): Likewise.
+ (riscv_register_feature::register_info): Change 'required_p' field
+ to 'required', and change its type. Add 'check' member function.
+ (riscv_register_feature::register_info::check): Define new member
+ function.
+ (riscv_xreg_feature): Change initialisation of 'required' field.
+ (riscv_freg_feature): Likewise.
+ (riscv_virtual_feature): Likewise.
+ (riscv_csr_feature): Likewise.
+ (riscv_check_tdesc_feature): Take extra parameter, the csr
+ tdesc_feature, rewrite the function to use the new
+ riscv_register_feature::register_info::check function.
+ (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
+
+2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
+
* features/Makefile: Remove all references to the deleted files
below.
* features/riscv/32bit-csr.c: Deleted.