powerpc/code-patching: Test patch_instructions() during boot
authorBenjamin Gray <bgray@linux.ibm.com>
Mon, 25 Mar 2024 05:28:14 +0000 (16:28 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 May 2024 14:35:42 +0000 (00:35 +1000)
commitc5ef5e35844ad30503c49802b9d6a6c818fca886
treeb1cad36f680429ef54ee1cb93189748d28f79969
parent295454eda97b9c5f7a64ac5c2bb827fd15efb623
powerpc/code-patching: Test patch_instructions() during boot

patch_instructions() introduces new behaviour with a couple of
variations. Test each case of

  * a repeated 32-bit instruction,
  * a repeated 64-bit instruction (ppc64), and
  * a copied sequence of instructions

for both on a single page and when it crosses a page boundary.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240325052815.854044-1-bgray@linux.ibm.com
arch/powerpc/lib/test-code-patching.c