riscv: Add macro for multiple nop instructions

A patchset in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Tue, 7 Jun 2022 11:09:23 +0200

Some cases need multiple nop instructions and arm64 already has a nice helper for not needing to write all of them out but instead use a helper to add n nops. So add a similar thing to riscv and convert the T-Head PMA alternative to use it. Heiko Stuebner (2): riscv: introduce nops and __nops macros for NOP sequences riscv: convert the t-head pbmt errata to use the __nops macro arch/riscv/include/asm/asm.h | 15 +++++++++++++++ arch/riscv/include/asm/barrier.h | 2 ++ arch/riscv/include/asm/errata_list.h | 8 +------- 3 files changed, 18 insertions(+), 7 deletions(-) -- 2.35.1

Patches in this set

Statistics

  • 2 individual patches
  • 18 lines added
  • 7 lines removed
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...