LoongArch: Add guard for the larch_insn_gen_xxx functions
authorWANG Rui <wangrui@loongson.cn>
Thu, 29 Jun 2023 12:58:42 +0000 (20:58 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Jun 2023 12:58:42 +0000 (20:58 +0800)
commit0d03e9dce5c91d841a35af05ca61a5cf318f5064
tree24f8cd43a83332492c776c5928fc2956c970f87c
parentd7c24960975b02211c53afe97c36acde5c8ff933
LoongArch: Add guard for the larch_insn_gen_xxx functions

Add guard for the larch_insn_gen_xxx functions to verify whether the
immediate operand is within the acceptable range.

Signed-off-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/inst.h
arch/loongarch/include/asm/module.h
arch/loongarch/kernel/inst.c