Searched hist:"3 a3b5aa63fad4911e239055c2c0a89ce2dac62ce" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/powerpc/kernel/ |
H A D | traps.c | diff 3a3b5aa63fad4911e239055c2c0a89ce2dac62ce Sun Jul 14 03:40:07 CDT 2013 Kevin Hao <haokexin@gmail.com> 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>
|