PPC: Fix interpreter state setup in callbacks.

This commit is contained in:
Mike Pall 2012-06-11 00:44:54 +02:00
parent 58622937c0
commit c0aaf271c8

View File

@ -2601,8 +2601,10 @@ static void build_subroutines(BuildCtx *ctx)
| li ZERO, 0 | li ZERO, 0
| mr L, CRET1 | mr L, CRET1
| stw TMP3, TMPD | stw TMP3, TMPD
| lus TMP0, 0x4338 // Hiword of 2^52 + 2^51 (double)
| lwz LFUNC:RB, FRAME_FUNC(BASE) | lwz LFUNC:RB, FRAME_FUNC(BASE)
| ori TMP3, TMP3, 0x0004 // TONUM = 2^52 + 2^51 + 2^31 (float). | ori TMP3, TMP3, 0x0004 // TONUM = 2^52 + 2^51 + 2^31 (float).
| stw TMP0, TONUM_HI
| li TISNIL, LJ_TNIL | li TISNIL, LJ_TNIL
| li_vmstate INTERP | li_vmstate INTERP
| lfs TOBIT, TMPD | lfs TOBIT, TMPD