From: Paul Mackerras Date: Sat, 19 Jul 2014 07:47:57 +0000 (+1000) Subject: powerpc: Fix bugs in emulate_step() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~241^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e698b9667879b79e479cc985f9d74ecf126e343e;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed