diff options
author | Jim Wilson <jimw@sifive.com> | 2018-06-29 15:12:23 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-06-29 15:12:23 -0700 |
commit | b9c04e5a8289507fdeb783c337f59a76ff491685 (patch) | |
tree | dfda0ac7c447328749a3090c39c8f429e37b3003 | |
parent | de52b9607d2623f18b7a7dbee3e1123d8d63f5da (diff) | |
download | gdb-b9c04e5a8289507fdeb783c337f59a76ff491685.zip gdb-b9c04e5a8289507fdeb783c337f59a76ff491685.tar.gz gdb-b9c04e5a8289507fdeb783c337f59a76ff491685.tar.bz2 |
RISC-V: Add gas support for "fp" register.
gas/
* config/tc-riscv.c (md_begin): Call hash_reg_name for "fp".
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-riscv.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index e0cfe04..70a9229 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2018-06-29 Jim Wilson <jimw@sifive.com> + + * config/tc-riscv.c (md_begin): Call hash_reg_name for "fp". + 2018-06-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * config/tc-aarch64.c (warn_unpredictable_ldst): Add unpredictable diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index bdec307..5ba997e 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -853,6 +853,9 @@ md_begin (void) hash_reg_names (RCLASS_FPR, riscv_fpr_names_numeric, NFPR); hash_reg_names (RCLASS_FPR, riscv_fpr_names_abi, NFPR); + /* Add "fp" as an alias for "s0". */ + hash_reg_name (RCLASS_GPR, "fp", 8); + opcode_names_hash = hash_new (); init_opcode_names_hash (); |