Commit 0ee604ab authored by Aaron Larson's avatar Aaron Larson Committed by David Gibson
Browse files

target-ppc: SPR_BOOKE_ESR not set on FP exceptions



Properly set the book E exception syndrome register when a floating
point exception occurs.

Currently on a book E processor, the POWERPC_EXCP_FP exception handler
fails to set "env->spr[SPR_BOOKE_ESR] = ESR_FP;" as required by the
book E specification.

Signed-off-by: default avatarAaron Larson <alarson@ddci.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent e806b4db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -283,6 +283,7 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int excp_model, int excp)
             * precise in the MSR.
             */
            msr |= 0x00100000;
            env->spr[SPR_BOOKE_ESR] = ESR_FP;
            break;
        case POWERPC_EXCP_INVAL:
            LOG_EXCP("Invalid instruction at " TARGET_FMT_lx "\n", env->nip);