riscv: Define register index constants using literals