OSDN Git Service

powerpc/sstep: Fix emulate_step test if VSX not present
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Mon, 21 May 2018 04:21:08 +0000 (09:51 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 14:39:14 +0000 (00:39 +1000)
commit5a61640e322693028a36452f637681d388e4c241
tree4dc9cd07bc7f5a80f78d60704599a8ff3dcf1c3b
parent83afab4ce05660c728f4a5d45f5970d9cc9ee6d2
powerpc/sstep: Fix emulate_step test if VSX not present

emulate_step() tests are failing if VSX is not supported or disabled.

  emulate_step_test: lxvd2x         : FAIL
  emulate_step_test: stxvd2x        : FAIL

If !CPU_FTR_VSX, emulate_step() failure is expected and testcase should
PASS with a valid justification. After patch:

  emulate_step_test: lxvd2x         : PASS (!CPU_FTR_VSX)
  emulate_step_test: stxvd2x        : PASS (!CPU_FTR_VSX)

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/test_emulate_step.c