Changes: Christian Thalinger
Christian Ullrich
- $Id: codegen.c 3169 2005-09-10 20:32:22Z twisti $
+ $Id: codegen.c 3194 2005-09-16 12:31:51Z twisti $
*/
#include "vm/jit/reg.inc"
-void asm_cacheflush(void *, long);
-
/* #include <architecture/ppc/cframe.h> */
#if defined(USE_THREADS) && defined(NATIVE_THREADS)
M_FLTMOVE(REG_FRESULT, rd->argfltregs[0]);
M_FLTMOVE(REG_FRESULT, rd->argfltregs[1]);
- disp = dseg_addaddress(cd, (void *) builtin_displaymethodstop);
+ disp = dseg_addaddress(cd, builtin_displaymethodstop);
M_ALD(REG_ITMP2, REG_PV, disp);
M_MTCTR(REG_ITMP2);
M_JSR;
disp = dseg_addaddress(cd, NULL);
codegen_addpatchref(cd, mcodeptr,
- (functionptr) iptr->target, iptr->val.a,
- disp);
+ (functionptr) (ptrint) iptr->target,
+ iptr->val.a, disp);
if (opt_showdisassemble)
M_NOP;
codegen_finish(m, cd, (ptrint) ((u1 *) mcodeptr - cd->mcodebase));
- asm_cacheflush((void *) m->entrypoint, ((u1 *) mcodeptr - cd->mcodebase));
+ asm_cacheflush((void *) (ptrint) m->entrypoint, ((u1 *) mcodeptr - cd->mcodebase));
}
codegen_finish(m, cd, (s4) ((u1 *) mcodeptr - cd->mcodebase));
- asm_cacheflush((void *) m->entrypoint, ((u1 *) mcodeptr - cd->mcodebase));
+ asm_cacheflush((void *) (ptrint) m->entrypoint, ((u1 *) mcodeptr - cd->mcodebase));
return m->entrypoint;
}
#else
M_AST(REG_ITMP1, REG_SP, LA_SIZE + 4 * 8);
#endif
- p = dseg_addaddress(cd, (void *) builtin_trace_args);
+ p = dseg_addaddress(cd, builtin_trace_args);
M_ALD(REG_ITMP2, REG_PV, p);
M_MTCTR(REG_ITMP2);
M_JSR;