]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe7ce43cc2f78d6f2bd670c65c1501623ba44db0
tree6a940a547158badfb4ee7b6019adaead4cce228d
parent163b7f1cf7dddf4873a3c4075440f1e76a59074c
parent365e03256464a87feae5bea7077f1c4c7cb1da63
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