mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
powerpc/SPE: Enable SPV bit for EFSCFD instruction emulation
EFSCFD (floating point single convert from double) emulation requires saving the high word of the register, which uses SPE instructions. Enable the SPE to avoid an SPV Unavailable exception. MFC after: 1 week
This commit is contained in:
parent
ad6521c24f
commit
cafceaebea
1 changed files with 1 additions and 0 deletions
|
|
@ -572,6 +572,7 @@ spe_handle_fpdata(struct trapframe *frame)
|
|||
frame->fixreg[rd] = frame->fixreg[ra] ^ (1U << 31);
|
||||
break;
|
||||
case EFSCFD:
|
||||
mtmsr(msr | PSL_VEC);
|
||||
spe_explode(&fpemu, &fpemu.fe_f3, DOUBLE,
|
||||
spe_save_reg_high(rb), frame->fixreg[rb]);
|
||||
result = &fpemu.fe_f3;
|
||||
|
|
|
|||
Loading…
Reference in a new issue