summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/gpr-num.h
AgeCommit message (Collapse)Author
2022-10-02riscv: Add X register names to gpr-numsAndrew Jones
When encoding instructions it's sometimes necessary to set a register field to a precise number. This is easiest to do using the x<num> naming. Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Anup Patel <anup@brainfault.org>
2022-01-05riscv: add gpr-num.hJisheng Zhang
This defines the mapping from ABI names to X registers. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>