target/riscv: Move gen_* helpers for RVB