[PATCH v5 00/12] Allow calls in alternatives
Palmer Dabbelt
palmer at rivosinc.com
Thu Dec 29 07:00:55 PST 2022
On Fri, 23 Dec 2022 23:13:20 +0100, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner at vrull.eu>
>
> This series is split out of my work on optimizing string functions
> and provides the basics to:
>
> - actually allowing calls in alternatives
> Function calls use auipc + jalr to reach those 32bit relative
> addresses but when they're compiled the offset will be wrong
> as alternatives live in a different section. So when the patch
> gets applied the address will point to the wrong location.
>
> [...]
Applied, thanks!
[01/12] RISC-V: fix funct4 definition for c.jalr in parse_asm.h
https://git.kernel.org/palmer/c/a3775634f6da
[02/12] RISC-V: add prefix to all constants/macros in parse_asm.h
https://git.kernel.org/palmer/c/bf0cc402d7cd
[03/12] RISC-V: detach funct-values from their offset
https://git.kernel.org/palmer/c/33e41480b233
[04/12] RISC-V: add ebreak instructions to definitions
https://git.kernel.org/palmer/c/2621cac76f84
[05/12] RISC-V: add auipc elements to parse_asm header
https://git.kernel.org/palmer/c/cde4a69302a4
[06/12] RISC-V: Move riscv_insn_is_* macros into a common header
https://git.kernel.org/palmer/c/ec5f90877516
[07/12] RISC-V: rename parse_asm.h to insn.h
https://git.kernel.org/palmer/c/c9c1af3f186a
[08/12] RISC-V: kprobes: use central defined funct3 constants
https://git.kernel.org/palmer/c/debe28d0a52e
[09/12] RISC-V: add U-type imm parsing to insn.h header
https://git.kernel.org/palmer/c/8963d6224009
[10/12] RISC-V: add rd reg parsing to insn.h header
https://git.kernel.org/palmer/c/088ec01fce4e
[11/12] RISC-V: add helpers for handling immediates in U-type and I-type pairs
https://git.kernel.org/palmer/c/47f05757d3d8
[12/12] RISC-V: fix auipc-jalr addresses in patched alternatives
https://git.kernel.org/palmer/c/27c653c06505
Best regards,
--
Palmer Dabbelt <palmer at rivosinc.com>
More information about the linux-riscv
mailing list