riscv: alternative: proceed one more instruction for auipc/jalr pair
authorJisheng Zhang <jszhang@kernel.org>
Sun, 15 Jan 2023 16:28:11 +0000 (00:28 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 Feb 2023 01:21:50 +0000 (17:21 -0800)
commit91612cfb173619b38087449cd3811f9cb4420d94
tree1837a9adcd7d0bf3ba96e38552ac011eea9adcf3
parentf3af3b0039fe4760fe89a05beb4a0bebbda25ac8
riscv: alternative: proceed one more instruction for auipc/jalr pair

If we patched auipc + jalr pair, we'd better proceed one more
instruction. Andrew pointed out "There's not a problem now, since
we're only adding a fixup for jal, not jalr, but we should
future-proof this and there's no reason to revisit an already fixed-up
instruction anyway."

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20230115162811.3146-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/alternative.c