RISC-V: Add new CSR feature gate handling (RV32,H)
authorTsukasa OI <research_trasio@irq.a4lg.com>
Fri, 24 Jun 2022 02:51:53 +0000 (11:51 +0900)
committerNelson Chu <nelson.chu@sifive.com>
Tue, 28 Jun 2022 01:05:54 +0000 (09:05 +0800)
commit39590abd658b9d7322ed8c54b784f00aca749e03
treefd4a5a4a328a42de01d75bf54b4d48bc2b92e307
parent8bddb52eb97bbfd70f95447810f69c803b01e7b7
RISC-V: Add new CSR feature gate handling (RV32,H)

To support feature gate like Smstateen && H, this commit adds certain
CSR feature gate handling.  It also changes how RV32-only CSRs are
handled for cleanliness.

gas/ChangeLog:

* config/tc-riscv.c (riscv_csr_address): Add CSR feature gate
handling for H.  Change handling on RV32.
gas/config/tc-riscv.c