mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
PPC: Fix interpreter state setup in callbacks.
This commit is contained in:
parent
58622937c0
commit
c0aaf271c8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user