* asm_cacheflush: Declaration removed.
authortwisti <none@none>
Fri, 16 Sep 2005 12:31:51 +0000 (12:31 +0000)
committertwisti <none@none>
Fri, 16 Sep 2005 12:31:51 +0000 (12:31 +0000)
* Compiler warning fixes.

src/vm/jit/powerpc/codegen.c

index 6470b018b5fe5f7732fa441b795886894275e6a5..69de263e66a9e5efc048e80fdd4c839869dc726e 100644 (file)
@@ -30,7 +30,7 @@
    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 $
 
 */
 
@@ -69,8 +69,6 @@
 #include "vm/jit/reg.inc"
 
 
-void asm_cacheflush(void *, long);
-
 /* #include <architecture/ppc/cframe.h> */
 
 #if defined(USE_THREADS) && defined(NATIVE_THREADS)
@@ -2368,7 +2366,7 @@ nowperformreturn:
 
                                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;
@@ -3134,8 +3132,8 @@ gen_method:
                                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;
@@ -3734,7 +3732,7 @@ gen_method:
 
        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));
 }
 
 
@@ -4244,7 +4242,7 @@ functionptr createnativestub(functionptr f, methodinfo *m, codegendata *cd,
 
        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;
 }
@@ -4402,7 +4400,7 @@ s4 *codegen_trace_args(methodinfo *m, codegendata *cd, registerdata *rd,
 #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;