powerpc: sstep: Add support for darn instruction
authorSandipan Das <sandipan@linux.ibm.com>
Fri, 22 Feb 2019 06:53:28 +0000 (12:23 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 25 Feb 2019 13:05:17 +0000 (00:05 +1100)
commita23987ef267a3549667fed5d69c0174e7fc15910
tree141c27f8779c90fb1b8bcb11dddb5fa59fdca234
parent930d6288a26787d2e7f633705434171a506db9c5
powerpc: sstep: Add support for darn instruction

This adds emulation support for the following integer instructions:
  * Deliver A Random Number (darn)

As suggested by Michael, this uses a raw .long for specifying the
instruction word when using inline assembly to retain compatibility
with older binutils.

Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c