From: Kevin Hao Date: Sun, 14 Jul 2013 08:40:07 +0000 (+0800) Subject: powerpc: Introduce function emulate_math() X-Git-Tag: v3.12-rc1~123^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3b5aa63fad4911e239055c2c0a89ce2dac62ce;p=pandora-kernel.git powerpc: Introduce function emulate_math() There are two invocations of do_mathemu() in traps.c. And the codes in these two places are almost the same. Introduce a locale function to eliminate the duplication. With this change we can also make sure that in program_check_exception() the PPC_WARN_EMULATED is invoked for the correctly emulated math instructions. Signed-off-by: Kevin Hao Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed