[PATCH] powerpc: fix emulate_step std test

Ravi Bangoria ravi.bangoria at linux.ibm.com
Thu Feb 27 18:04:13 AEDT 2020



On 2/26/20 11:23 AM, Nicholas Piggin wrote:
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>

Reviewed-by: Ravi Bangoria <ravi.bangoria at linux.ibm.com>

> ---
>   arch/powerpc/lib/test_emulate_step.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/lib/test_emulate_step.c b/arch/powerpc/lib/test_emulate_step.c
> index 42347067739c..00d70253cb5b 100644
> --- a/arch/powerpc/lib/test_emulate_step.c
> +++ b/arch/powerpc/lib/test_emulate_step.c
> @@ -160,7 +160,7 @@ static void __init test_std(void)
>   
>   	/* std r5, 0(r3) */
>   	stepped = emulate_step(&regs, TEST_STD(5, 3, 0));
> -	if (stepped == 1 || regs.gpr[5] == a)
> +	if (stepped == 1 && regs.gpr[5] == a)
>   		show_result("std", "PASS");
>   	else
>   		show_result("std", "FAIL");
> 



More information about the Linuxppc-dev mailing list