OpenCloudOS-Kernel/arch/csky/kernel/probes
Guo Ren 8dcbc611f0 csky: kprobe: Fixup code in simulate without 'long'
The type of 'val' is 'unsigned long' in simulate_blz32, so 'val < 0'
can't be true.

Cast 'val' to 'long' here to determine branch token or not,

Fixup instructions: bnezad32, bhsz32, bhz32, blsz32, blz32

Link: https://lore.kernel.org/linux-csky/CAJF2gTQjKXR9gpo06WAWG1aquiT87mATiMGorXs6ChxOxoe90Q@mail.gmail.com/T/#t
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Co-developed-by: Menglong Dong <dong.menglong@zte.com.cn>
Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
2021-02-27 16:34:50 +08:00
..
Makefile csky: Add uprobes support 2020-04-03 11:37:51 +08:00
decode-insn.c csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
decode-insn.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
ftrace.c ftrace: Have the callbacks receive a struct ftrace_regs instead of pt_regs 2020-11-13 12:14:55 -05:00
kprobes.c csky: kprobes: Use generic kretprobe trampoline handler 2020-09-08 11:52:33 +02:00
kprobes_trampoline.S csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
simulate-insn.c csky: kprobe: Fixup code in simulate without 'long' 2021-02-27 16:34:50 +08:00
simulate-insn.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
uprobes.c csky: Fixup perf probe -x hungup 2020-05-13 17:55:05 +08:00