PPCSPE: Save/restore cr2, cr3 and cr4 when entering/leaving VM.

This commit is contained in:
Mike Pall
2011-08-10 22:09:14 +02:00
parent d84207b8b6
commit e8fa76feac
5 changed files with 383 additions and 367 deletions

View File

@@ -578,7 +578,7 @@ static int ccall_set_args(lua_State *L, CTState *cts, CType *ct,
}
if (fid) lj_err_caller(L, LJ_ERR_FFI_NUMARG); /* Too few arguments. */
#if LJ_TARGET_X64 || LJ_TARGET_PPC || LJ_TARGET_PPCSPE
#if LJ_TARGET_X64 || LJ_TARGET_PPC
cc->nfpr = nfpr; /* Required for vararg functions. */
#endif
cc->nsp = nsp;