riscv: Add macro for multiple nop instructions

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.

* 'riscv-nops' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git:
  riscv: convert the t-head pbmt errata to use the __nops macro
  riscv: introduce nops and __nops macros for NOP sequences
This commit is contained in:
Palmer Dabbelt 2022-07-21 17:19:43 -07:00
commit f4361718f7
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41
3 changed files with 18 additions and 7 deletions