linux/arch/loongarch/kernel
Tiezhu Yang c1474bb0b7 LoongArch: BPF: Adjust the parameter of emit_jirl()
The branch instructions beq, bne, blt, bge, bltu, bgeu and jirl belong
to the format reg2i16, but the sequence of oprand is different for the
instruction jirl. So adjust the parameter order of emit_jirl() to make
it more readable correspond with the Instruction Set Architecture manual.

Here are the instruction formats:

  beq     rj, rd, offs16
  bne     rj, rd, offs16
  blt     rj, rd, offs16
  bge     rj, rd, offs16
  bltu    rj, rd, offs16
  bgeu    rj, rd, offs16
  jirl    rd, rj, offs16

Link: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#branch-instructions
Suggested-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2024-12-02 16:42:08 +08:00
..
.gitignore
access-helper.h
acpi.c LoongArch: For all possible CPUs setup logical-physical CPU mapping 2024-11-12 16:35:36 +08:00
alternative.c
asm-offsets.c LoongArch: vDSO: Use vdso/datapage.h to access vDSO data 2024-11-02 12:37:33 +01:00
cacheinfo.c
cpu-probe.c LoongArch: Rework CPU feature probe from CPUCFG/IOCSR 2024-09-24 15:32:20 +08:00
crash_dump.c
dma.c
efi-header.S
efi.c LoongArch: Fix reserving screen info memory for above-4G firmware 2024-12-02 16:42:07 +08:00
elf.c
entry.S
env.c
fpu.S LoongArch: Add ifdefs to fix LSX and LASX related warnings 2024-08-26 23:11:32 +08:00
ftrace.c
ftrace_dyn.c ftrace: Make ftrace_regs abstract from direct use 2024-10-10 20:18:01 -04:00
genex.S
head.S
hw_breakpoint.c
idle.c
image-vars.h
inst.c LoongArch: BPF: Adjust the parameter of emit_jirl() 2024-12-02 16:42:08 +08:00
irq.c LoongArch: Switch to irq_set_nr_irqs() 2024-10-16 21:56:56 +02:00
jump_label.c
kfpu.c
kgdb.c
kprobes.c
lbt.S
machine_kexec.c
Makefile loongarch: Use new fallback IO memcpy/memset 2024-10-28 21:44:29 +00:00
Makefile.syscalls
mcount.S
mcount_dyn.S
mem.c
module-sections.c
module.c
numa.c arch, mm: pull out allocation of NODE_DATA to generic code 2024-09-03 21:15:28 -07:00
paravirt.c LoongArch: Fix AP booting issue in VM mode 2024-11-12 16:35:39 +08:00
perf_event.c
perf_regs.c
proc.c LoongArch: Rework CPU feature probe from CPUCFG/IOCSR 2024-09-24 15:32:20 +08:00
process.c LoongArch: Don't crash in stack_top() for tasks without vDSO 2024-10-21 22:11:19 +08:00
ptrace.c
relocate.c
relocate_kernel.S
reset.c
rethook.c
rethook.h
rethook_trampoline.S
setup.c Devicetree updates for v6.13: 2024-11-20 13:19:25 -08:00
signal.c
smp.c LoongArch/irq: Use seq_put_decimal_ull_width() for decimal values 2024-12-02 16:42:08 +08:00
stacktrace.c
switch.S
syscall.c LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall) 2024-09-17 22:23:10 +08:00
sysrq.c
time.c LoongArch: Reduce min_delta for the arch clockevent device 2024-11-26 18:06:03 +08:00
topology.c
traps.c LoongArch: Enable IRQ if do_ale() triggered in irq-enabled context 2024-10-21 22:11:19 +08:00
unaligned.c
unwind.c
unwind_guess.c
unwind_orc.c
unwind_prologue.c
uprobes.c
vdso.c First step of consolidating the VDSO data page handling: 2024-11-19 16:09:13 -08:00
vmlinux.lds.S