]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/lib/sstep: Add popcnt instruction emulation
authorMatt Brown <matthew.brown.dev@gmail.com>
Mon, 31 Jul 2017 00:58:23 +0000 (10:58 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:30:27 +0000 (22:30 +1000)
commitc091f361d80a34af9122297c6b402516fea7a737
tree05311ea34c7382dc99e10a10f9aea4d3d3d37985
parent1e74671096c74e7e2228372bee3b08f8fd155826
powerpc/lib/sstep: Add popcnt instruction emulation

This adds emulations for the popcntb, popcntw, and popcntd instructions.
Tested for correctness against the popcnt{b,w,d} instructions on ppc64le.

Signed-off-by: Matt Brown <matthew.brown.dev@gmail.com>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c