]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/riscv-tdep.h
gdb/riscv: make riscv target description names global
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 15 Feb 2021 16:07:48 +0000 (16:07 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 5 Mar 2021 17:21:41 +0000 (17:21 +0000)
commitd782d24b3297d0eebdc3c823bd41993e5d670c88
tree0c294480083a2cfa40cc2770432beef83bf0150a
parentdb6092f3aec43ea4d10efc5ff74274f04cdc0ad6
gdb/riscv: make riscv target description names global

A later commit will need the names of the RISC-V target description
features in files other than riscv-tdep.c.  This commit just makes the
names global strings that can be accessed from other riscv-*.c files.

There should be no user visible changes after this commit.

gdb/ChangeLog:

        * riscv-tdep.c (riscv_feature_name_csr): Define.
        (riscv_feature_name_cpu): Define.
        (riscv_feature_name_fpu): Define.
        (riscv_feature_name_virtual): Define.
        (riscv_xreg_feature): Use riscv_feature_name_cpu.
        (riscv_freg_feature): Use riscv_feature_name_fpu.
        (riscv_virtual_feature): Use riscv_feature_name_virtual.
        (riscv_csr_feature): Use riscv_feature_name_csr.
        * riscv-tdep.h (riscv_feature_name_csr): Declare.
gdb/ChangeLog
gdb/riscv-tdep.c
gdb/riscv-tdep.h