mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
powerpc/fsl-booke: Use common defines for SPE/FP interrupts numbers
On Book3E some SPE/FP/AltiVec interrupts share the same number. Use common defines to indentify these numbers. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> [scottwood@freescale.com: fixed space-before-tab] Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
6b310fc58d
commit
c58ce397a6
@ -555,27 +555,27 @@ END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV)
|
|||||||
#ifdef CONFIG_SPE
|
#ifdef CONFIG_SPE
|
||||||
/* SPE Unavailable */
|
/* SPE Unavailable */
|
||||||
START_EXCEPTION(SPEUnavailable)
|
START_EXCEPTION(SPEUnavailable)
|
||||||
NORMAL_EXCEPTION_PROLOG(SPE_UNAVAIL)
|
NORMAL_EXCEPTION_PROLOG(SPE_ALTIVEC_UNAVAIL)
|
||||||
beq 1f
|
beq 1f
|
||||||
bl load_up_spe
|
bl load_up_spe
|
||||||
b fast_exception_return
|
b fast_exception_return
|
||||||
1: addi r3,r1,STACK_FRAME_OVERHEAD
|
1: addi r3,r1,STACK_FRAME_OVERHEAD
|
||||||
EXC_XFER_EE_LITE(0x2010, KernelSPE)
|
EXC_XFER_EE_LITE(0x2010, KernelSPE)
|
||||||
#else
|
#else
|
||||||
EXCEPTION(0x2020, SPE_UNAVAIL, SPEUnavailable, \
|
EXCEPTION(0x2020, SPE_ALTIVEC_UNAVAIL, SPEUnavailable, \
|
||||||
unknown_exception, EXC_XFER_EE)
|
unknown_exception, EXC_XFER_EE)
|
||||||
#endif /* CONFIG_SPE */
|
#endif /* CONFIG_SPE */
|
||||||
|
|
||||||
/* SPE Floating Point Data */
|
/* SPE Floating Point Data */
|
||||||
#ifdef CONFIG_SPE
|
#ifdef CONFIG_SPE
|
||||||
EXCEPTION(0x2030, SPE_FP_DATA, SPEFloatingPointData, \
|
EXCEPTION(0x2030, SPE_FP_DATA_ALTIVEC_ASSIST, SPEFloatingPointData,
|
||||||
SPEFloatingPointException, EXC_XFER_EE);
|
SPEFloatingPointException, EXC_XFER_EE)
|
||||||
|
|
||||||
/* SPE Floating Point Round */
|
/* SPE Floating Point Round */
|
||||||
EXCEPTION(0x2050, SPE_FP_ROUND, SPEFloatingPointRound, \
|
EXCEPTION(0x2050, SPE_FP_ROUND, SPEFloatingPointRound, \
|
||||||
SPEFloatingPointRoundException, EXC_XFER_EE)
|
SPEFloatingPointRoundException, EXC_XFER_EE)
|
||||||
#else
|
#else
|
||||||
EXCEPTION(0x2040, SPE_FP_DATA, SPEFloatingPointData, \
|
EXCEPTION(0x2040, SPE_FP_DATA_ALTIVEC_ASSIST, SPEFloatingPointData,
|
||||||
unknown_exception, EXC_XFER_EE)
|
unknown_exception, EXC_XFER_EE)
|
||||||
EXCEPTION(0x2050, SPE_FP_ROUND, SPEFloatingPointRound, \
|
EXCEPTION(0x2050, SPE_FP_ROUND, SPEFloatingPointRound, \
|
||||||
unknown_exception, EXC_XFER_EE)
|
unknown_exception, EXC_XFER_EE)
|
||||||
|
Loading…
Reference in New Issue
Block a user