[PATCH 2/2] powerpc/math-emu: keep track of the instructions unimplemented by FPU

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Jul 12 13:56:03 EST 2013


On Fri, 2013-07-12 at 10:07 +0800, Kevin Hao wrote:
> There are two invocations of do_mathemu() in the traps.c. The one in the
> function program_check_exception() doesn't call the PPC_WARN_EMULATED.
> This is also the one I try to fix. Of course my patch will definitely corrupt
> the one in function SoftwareEmulation(). I will respin a new patch to
> fix this. Sorry for my mistake.

Put the call in the caller (in program_check_exception). It keeps the code
in math-emu simpler and is consistent with what we do elsewhere.

Cheers,
Ben.




More information about the Linuxppc-dev mailing list