RISC-V: Simplify riscv_csr_address logic on state enable extensions
authorTsukasa OI <research_trasio@irq.a4lg.com>
Tue, 27 Dec 2022 03:31:19 +0000 (03:31 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 29 Dec 2022 01:00:13 +0000 (01:00 +0000)
commitc509db05e4f1500736f4de994ed2aede544234d5
tree63baaf07835a670717105f0f983788207702329e
parentdc20b8f00abb74e2c26846c615ec5ba3a62f8677
RISC-V: Simplify riscv_csr_address logic on state enable extensions

This commit makes CSR class handling for 'Smstateen' and 'Ssstateen'
extensions simpler using fall-throughs (as used in CSR_CLASS_I{,_32}).

gas/ChangeLog:

* config/tc-riscv.c (riscv_csr_address): Simplify the logic for
'Smstateen' and 'Ssstateen' extensions.
gas/config/tc-riscv.c