]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
riscv: jump_label: Simplify assembly syntax
authorSamuel Holland <samuel.holland@sifive.com>
Wed, 27 Mar 2024 16:04:41 +0000 (09:04 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 14:36:28 +0000 (07:36 -0700)
The idiomatic way to write "jal zero" is "j".

Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240327160520.791322-3-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/jump_label.h

index 6290b26f4a148089164e9a598841a9bff35565f3..1c768d02bd0c2a9559c373223c0bc11392b38908 100644 (file)
@@ -46,7 +46,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke
                "       .option push                            \n\t"
                "       .option norelax                         \n\t"
                "       .option norvc                           \n\t"
-               "1:     jal             zero, %l[label]         \n\t"
+               "1:     j               %l[label]               \n\t"
                "       .option pop                             \n\t"
                "       .pushsection    __jump_table, \"aw\"    \n\t"
                "       .align          " RISCV_LGPTR "         \n\t"