[a64] Fix `SET_ROUNDING_MODE_I32` exception

This commit is contained in:
Wunkolo 2024-05-10 10:38:13 -07:00
parent 046e8edc2a
commit f5e14d6a40
1 changed files with 2 additions and 2 deletions

View File

@ -2773,8 +2773,8 @@ struct SET_ROUNDING_MODE_I32
e.AND(W1, i.src1, 0b111);
// Use the low 3 bits as an index into a LUT
e.ADRL(X0, fpcr_table);
e.LDRB(W0, X0, W1);
e.MOVP2R(X0, fpcr_table);
e.LDRB(W0, X0, X1);
// Replace FPCR bits with new value
e.MRS(X1, SystemReg::FPCR);