riscv: clean up and unify encoding logic

1a7d89a84dDavid Rubin committed on 7/26/2024, 11:19:13 AMparent574028e
19 files changedLine totals unavailable