[a64] Fix SET_ROUNDING_MODE_I32 exception

This commit is contained in:
Wunkolo
2024-06-23 14:00:25 -07:00
parent dc024a1b75
commit eb8104e024
+2 -2
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);