From: Michael Ellerman Date: Thu, 7 Apr 2011 21:56:04 +0000 (+0000) Subject: powerpc: Use MSR_64BIT in sstep.c, fix kprobes on BOOK3E X-Git-Tag: v3.0-rc1~385^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91e136cdf88e19e998dbf4631ead266de4b80b5;p=pandora-kernel.git powerpc: Use MSR_64BIT in sstep.c, fix kprobes on BOOK3E We check MSR_SF a lot in sstep.c, to decide if we need to emulate the truncation of values when running in 32-bit mode. Factor out that code into a helper, and convert it and the other uses to use MSR_64BIT. This fixes a bug on BOOK3E where kprobes would end up returning to a 32-bit address, because regs->nip was truncated, because (msr & MSR_SF) was false. Signed-off-by: Michael Ellerman Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed