1
0
Fork 0
forked from suyu/suyu

armemu: Fix missing Q flag check for SMLSD.

This commit is contained in:
Lioncash 2015-01-02 18:23:21 -05:00
parent 3337b84620
commit bee4ff8454

View file

@ -6481,8 +6481,12 @@ L_stm_s_takeabort:
else {
state->Reg[rd_idx] = product1 - product2;
if (BITS(12, 15) != 15)
if (BITS(12, 15) != 15) {
state->Reg[rd_idx] += state->Reg[ra_idx];
if (ARMul_AddOverflowQ(product1 - product2, state->Reg[ra_idx]))
SETQ;
}
}
return 1;