OSDN Git Service

riscv: Add macro for multiple nop instructions
authorPalmer Dabbelt <palmer@rivosinc.com>
Fri, 22 Jul 2022 00:19:43 +0000 (17:19 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 22 Jul 2022 00:19:43 +0000 (17:19 -0700)
commitf4361718f7654f31fee6bf323147e7062d825599
tree6a940a547158badfb4ee7b6019adaead4cce228d
parent3f1901110a89b0e2e13adb2ac8d1a7102879ea98
parent9c2ea4a36364bfb5cf068c6fbea5c40292b119a5
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