summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2013-07-14 16:40:07 +0800
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 14:59:12 +1000
commit3a3b5aa63fad4911e239055c2c0a89ce2dac62ce (patch)
tree0254800fc0cb0f73eaa1d8a1ca3bfe96f47d1708 /arch/powerpc/math-emu
parent6761ee3d7e139ec8728e1515bfc5fdcaf3be317e (diff)
downloadlinux-0-day-3a3b5aa63fad4911e239055c2c0a89ce2dac62ce.tar.gz
linux-0-day-3a3b5aa63fad4911e239055c2c0a89ce2dac62ce.tar.xz
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>
Diffstat (limited to 'arch/powerpc/math-emu')
0 files changed, 0 insertions, 0 deletions