OSDN Git Service

powerpc/sstep: Let compute tests specify a required cpu feature
authorJordan Niethe <jniethe5@gmail.com>
Mon, 25 May 2020 02:59:22 +0000 (12:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jul 2020 07:25:18 +0000 (17:25 +1000)
commit301ebf7d69f6709575d137a41a0291f69f343aed
tree5f92b85b3ae8079ab891d10f419dc54a1dc42a5b
parent1c89cf7fbed36f078b20fd47d308b4fc6dbff5f6
powerpc/sstep: Let compute tests specify a required cpu feature

An a array of struct compute_test's are used to declare tests for
compute instructions. Add a cpu_feature field to struct compute_test as
an optional way to specify a cpu feature that must be present. If not
present then skip the test.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200525025923.19843-4-jniethe5@gmail.com
arch/powerpc/lib/test_emulate_step.c