[PATCH 0/4] arm64: insn: cleanups

Mark Rutland mark.rutland at arm.com
Mon Nov 14 05:59:24 PST 2022


This series makes some minor cleanups to the insn code. Largely this
changes a number of trivial functions to be __always_inline, making them
safe to use in noinstr code, and permitting the compiler to better
optimize sequences of aarch64_insn_is_*() checks.

I've split this out from a larger set of changes I was planning to send
this cycle (refactoring the bulk of the insn code) as that's not quite
complete and I'm still writing tests for the larger changes those come
with.


The changes in this series are all relatively trivial, and should result
in no functional change, so I'm hoping they're good-to-go as-is.

Thanks,
Mark.

Mark Rutland (4):
  arm64: insn: remove aarch64_insn_gen_prefetch()
  arm64: insn: always inline predicates
  arm64: insn: simplify insn group identification
  arm64: insn: always inline hint generation

 arch/arm64/include/asm/insn.h          | 156 ++++++++++++++++-------
 arch/arm64/kernel/probes/decode-insn.c |   2 +-
 arch/arm64/lib/insn.c                  | 165 -------------------------
 3 files changed, 110 insertions(+), 213 deletions(-)

-- 
2.30.2




More information about the linux-arm-kernel mailing list