PPC: Fix write barrier in BC_TSETR.

Thanks to Gustavo Serra Scalet.
This commit is contained in:
Mike Pall 2015-04-09 18:48:03 +02:00
parent 4e52d1f17e
commit 8002871619

View File

@ -4289,13 +4289,13 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
| lwz TAB:CARG2, 4(RB) | lwz TAB:CARG2, 4(RB)
|.if DUALNUM |.if DUALNUM
| add RC, BASE, RC | add RC, BASE, RC
| lbz TMP3, TAB:RB->marked | lbz TMP3, TAB:CARG2->marked
| lwz TMP0, TAB:CARG2->asize | lwz TMP0, TAB:CARG2->asize
| lwz CARG3, 4(RC) | lwz CARG3, 4(RC)
| lwz TMP1, TAB:CARG2->array | lwz TMP1, TAB:CARG2->array
|.else |.else
| lfdx f0, BASE, RC | lfdx f0, BASE, RC
| lbz TMP3, TAB:RB->marked | lbz TMP3, TAB:CARG2->marked
| lwz TMP0, TAB:CARG2->asize | lwz TMP0, TAB:CARG2->asize
| toint CARG3, f0 | toint CARG3, f0
| lwz TMP1, TAB:CARG2->array | lwz TMP1, TAB:CARG2->array