]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix bugs in emulate_step()
authorPaul Mackerras <paulus@samba.org>
Sat, 19 Jul 2014 07:47:57 +0000 (17:47 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 22 Jul 2014 05:55:51 +0000 (15:55 +1000)
commitc98fe3dac9772a5810dca0959c922861526e1110
tree6072870769c85d687c774bd8c532ad9fb1a172f8
parent58b37bd5b620af14802cf490993ba926f38f7c3c
powerpc: Fix bugs in emulate_step()

This fixes some bugs in emulate_step().  First, the setting of the carry
bit for the arithmetic right-shift instructions was not correct on 64-bit
machines because we were masking with a mask of type int rather than
unsigned long.  Secondly, the sld (shift left doubleword) instruction was
using the wrong instruction field for the register containing the shift
count.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/lib/sstep.c