Thread (9 messages) 9 messages, 2 authors, 2008-11-06

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

From: Kumar Gala <hidden>
Date: 2008-11-06 04:06:28

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 <redacted>
---
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help