]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Introduce function emulate_math()
authorKevin Hao <haokexin@gmail.com>
Sun, 14 Jul 2013 08:40:07 +0000 (16:40 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:59:12 +0000 (14:59 +1000)
commit5d7ef154fedaaa2524880f20c580e56cdf153bab
tree0254800fc0cb0f73eaa1d8a1ca3bfe96f47d1708
parentf3ed6b7e12855831e580617a77add7c121b58750
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 <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c