Skip to content

Commit 164f66d

Browse files
Chunyan Zhangpalmer-dabbelt
authored andcommitted
riscv: Remove duplicated GET_RM
The macro GET_RM defined twice in this file, one can be removed. Reviewed-by: Alexandre Ghiti <[email protected]> Signed-off-by: Chunyan Zhang <[email protected]> Fixes: 956d705 ("riscv: Unaligned load/store handling for M_MODE") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 46d4e5a commit 164f66d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/riscv/kernel/traps_misaligned.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@
136136
#define REG_PTR(insn, pos, regs) \
137137
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
138138

139-
#define GET_RM(insn) (((insn) >> 12) & 7)
140-
141139
#define GET_RS1(insn, regs) (*REG_PTR(insn, SH_RS1, regs))
142140
#define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs))
143141
#define GET_RS1S(insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs))

0 commit comments

Comments
 (0)