Author: stephane
Date: Fri Aug 12 17:15:15 2005
New Revision: 8933
Modified:
trunk/jit/sun4/jit_emit.h
Log:
context switch fix (start cleanup)
Modified: trunk/jit/sun4/jit_emit.h
==============================================================================
--- trunk/jit/sun4/jit_emit.h (original)
+++ trunk/jit/sun4/jit_emit.h Fri Aug 12 17:15:15 2005
@@ -370,6 +370,9 @@ Parrot_jit_bytejump(Parrot_jit_info_t *j
Interp *interpreter, int reg_num)
{
+ /* fixup where we have the Parrot registers - context switches */
+ emitm_ld_i(jit_info->native_ptr, emitm_i(0), offsetof(Interp, ctx.bp),
Parrot_jit_regbase);
+
/* Construct the starting address of the byte code */
emitm_sethi(jit_info->native_ptr, emitm_hi22(interpreter->code->base.data),
XSR1);