X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Fjit%2Fs390%2Fmd.c;h=52c6bbc46e8da20b40dd077522dc3075ef33b53d;hb=a9be6929d101f0ed22f3acf1c24a8c44dbfd7e2d;hp=1371bc1ccc9847ba207e6f031e54856bb1bf4f6e;hpb=b5a0d75a0b75c69a9ff27b66005a97f5b47cee22;p=cacao.git diff --git a/src/vm/jit/s390/md.c b/src/vm/jit/s390/md.c index 1371bc1cc..52c6bbc46 100644 --- a/src/vm/jit/s390/md.c +++ b/src/vm/jit/s390/md.c @@ -56,7 +56,6 @@ #include "vm/jit/codegen-common.h" #include "vm/jit/s390/codegen.h" -#include /* prototypes *****************************************************************/ @@ -412,25 +411,6 @@ void md_critical_section_restart(ucontext_t *_uc) #endif -/* md_stacktrace_get_returnaddress ********************************************* - - Returns the return address of the current stackframe, specified by - the passed stack pointer and the stack frame size. - -*******************************************************************************/ - -u1 *md_stacktrace_get_returnaddress(u1 *sp, u4 framesize) -{ - u1 *ra; - - /* on S390 the return address is located on the top of the stackframe */ - - ra = *((u1 **) (sp + framesize - 8)); - - return ra; -} - - /* md_jit_method_patch_address ************************************************* Gets the patch address of the currently compiled method. The offset @@ -528,63 +508,6 @@ void *md_jit_method_patch_address(void* pv, void *ra, void *mptr) } -/* md_codegen_get_pv_from_pc *************************************************** - - On this architecture just a wrapper function to - codegen_get_pv_from_pc. - -*******************************************************************************/ - -u1 *md_codegen_get_pv_from_pc(u1 *ra) -{ - u1 *pv; - - /* Get the start address of the function which contains this - address from the method table. */ - - pv = codegen_get_pv_from_pc(ra); - - return pv; -} - - -/* md_cacheflush *************************************************************** - - Calls the system's function to flush the instruction and data - cache. - -*******************************************************************************/ - -void md_cacheflush(u1 *addr, s4 nbytes) -{ - /* do nothing */ -} - - -/* md_icacheflush ************************************************************** - - Calls the system's function to flush the instruction cache. - -*******************************************************************************/ - -void md_icacheflush(u1 *addr, s4 nbytes) -{ - /* do nothing */ -} - - -/* md_dcacheflush ************************************************************** - - Calls the system's function to flush the data cache. - -*******************************************************************************/ - -void md_dcacheflush(u1 *addr, s4 nbytes) -{ - /* do nothing */ -} - - /* md_patch_replacement_point ************************************************** Patch the given replacement point.