powerpc/xmon: Remove store_inst() for patch_instruction()
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:21 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:36 +0000 (00:10 +1000)
commit802268fd82676ffce432776f60b93a0b15e58e0c
treee4f7454ce40d5da9fd00bc592ecdc502c011b7d5
parent126554465d93b10662742128918a5fc338cda4aa
powerpc/xmon: Remove store_inst() for patch_instruction()

For modifying instructions in xmon, patch_instruction() can serve the
same role that store_inst() is performing with the advantage of not
being specific to xmon. In some places patch_instruction() is already
being using followed by store_inst(). In these cases just remove the
store_inst(). Otherwise replace store_inst() with patch_instruction().

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Link: https://lore.kernel.org/r/20200506034050.24806-2-jniethe5@gmail.com
arch/powerpc/xmon/xmon.c