aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/test_emulate_step.c
diff options
context:
space:
mode:
authorJordan Niethe <[email protected]>2020-05-06 13:40:25 +1000
committerMichael Ellerman <[email protected]>2020-05-19 00:10:36 +1000
commit7c95d8893fb55869882c9f68f4c94840dc43f18f (patch)
tree96566e99f23b18330b70ea10a6e6b4128d0c52b1 /arch/powerpc/lib/test_emulate_step.c
parent5a7fdcab54ef17c395fc47e73c828a1432e51683 (diff)
powerpc: Change calling convention for create_branch() et. al.
create_branch(), create_cond_branch() and translate_branch() return the instruction that they create, or return 0 to signal an error. Separate these concerns in preparation for an instruction type that is not just an unsigned int. Fill the created instruction to a pointer passed as the first parameter to the function and use a non-zero return value to signify an error. Signed-off-by: Jordan Niethe <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Reviewed-by: Alistair Popple <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/test_emulate_step.c')
0 files changed, 0 insertions, 0 deletions