[PATCH 4/4] Add SPE/EFP math emulation for E500v1/v2 processors.

Kumar Gala kumar.gala at freescale.com
Thu Nov 6 15:05:42 EST 2008


On Oct 27, 2008, at 10:50 PM, Liu Yu wrote:

> This patch add the handlers of SPE/EFP exceptions.
> The code is used to emulate float point arithmetic,
> when MSR(SPE) is enabled and receive EFP data interrupt or EFP round  
> interrupt.
>
> This patch has no conflict with or dependence on FP math-emu.
>
> The code has been tested by TestFloat.
>
> Now the code doesn't support SPE/EFP instructions emulation
> (it won't be called when receive program interrupt),
> but it could be easily added.
>
> Signed-off-by: Liu Yu <yu.liu at freescale.com>
> ---
> arch/powerpc/include/asm/processor.h   |    6 +
> arch/powerpc/include/asm/sfp-machine.h |   36 ++-
> arch/powerpc/kernel/head_fsl_booke.S   |    7 +-
> arch/powerpc/kernel/traps.c            |   62 +++-
> arch/powerpc/math-emu/Makefile         |    2 +
> arch/powerpc/math-emu/math_efp.c       |  720 +++++++++++++++++++++++ 
> +++++++++
> 6 files changed, 813 insertions(+), 20 deletions(-)
> create mode 100644 arch/powerpc/math-emu/math_efp.c


applied to next.

- k



More information about the Linuxppc-dev mailing list