mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
riscv: Remove duplicated GET_RM
The macro GET_RM defined twice in this file, one can be removed.
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
Fixes: 956d705dd2
("riscv: Unaligned load/store handling for M_MODE")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20241008094141.549248-3-zhangchunyan@iscas.ac.cn
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
46d4e5ac6f
commit
164f66de6b
@ -136,8 +136,6 @@
|
|||||||
#define REG_PTR(insn, pos, regs) \
|
#define REG_PTR(insn, pos, regs) \
|
||||||
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
|
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
|
||||||
|
|
||||||
#define GET_RM(insn) (((insn) >> 12) & 7)
|
|
||||||
|
|
||||||
#define GET_RS1(insn, regs) (*REG_PTR(insn, SH_RS1, regs))
|
#define GET_RS1(insn, regs) (*REG_PTR(insn, SH_RS1, regs))
|
||||||
#define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs))
|
#define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs))
|
||||||
#define GET_RS1S(insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs))
|
#define GET_RS1S(insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs))
|
||||||
|
Loading…
Reference in New Issue
Block a user