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)
commitdcbd19b48d315a8bbf6b2b3dbdc643c747c8a7ee
tree05311ea34c7382dc99e10a10f9aea4d3d3d37985
parent02c0f62a60b67d6c9bfe9429cbe3aa034b6c6676
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