RISC-V: move some stray __RISCV_INSN_FUNCS definitions from kprobes
authorHeiko Stuebner <heiko.stuebner@vrull.eu>
Fri, 13 Jan 2023 21:19:55 +0000 (22:19 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 16 Feb 2023 04:32:31 +0000 (20:32 -0800)
commit8658db0a4a0f84f50fe6643fe8665efe1a4bdb66
tree12a74b76f3dd692a7e35a3e8353159cab9182e50
parentec6311919ea616be69076d03c3e2d2f7769d5f5f
RISC-V: move some stray __RISCV_INSN_FUNCS definitions from kprobes

The __RISCV_INSN_FUNCS originally declared riscv_insn_is_* functions inside
the kprobes implementation. This got moved into a central header in
commit ec5f90877516 ("RISC-V: Move riscv_insn_is_* macros into a common header").

Though it looks like I overlooked two of them, so fix that. FENCE itself is
an instruction defined directly by its own opcode, while the created
riscv_isn_is_system function covers all instructions defined under the SYSTEM
opcode.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Link: https://lore.kernel.org/r/20230113211955.3534431-1-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/insn.h
arch/riscv/kernel/probes/simulate-insn.h