X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Fjit%2Fx86_64%2Fmd.c;h=7514f1edb368a229cce522fe724ce7b77e56405b;hb=6fd72f4d63f219c79b2132dde9ec0aa5e6c1494b;hp=e59e81f58bf2d2f874f4a2ebc5b3c9d3a461e4d2;hpb=a1159b52f19fb0e9272c1e80491fe90569179c2a;p=cacao.git diff --git a/src/vm/jit/x86_64/md.c b/src/vm/jit/x86_64/md.c index e59e81f58..7514f1edb 100644 --- a/src/vm/jit/x86_64/md.c +++ b/src/vm/jit/x86_64/md.c @@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - $Id: md.c 7483 2007-03-08 13:17:40Z michi $ + $Id: md.c 7596 2007-03-28 21:05:53Z twisti $ */ @@ -60,34 +60,6 @@ void md_init(void) } -/* md_codegen_patch_branch ***************************************************** - - Back-patches a branch instruction. - -*******************************************************************************/ - -void md_codegen_patch_branch(codegendata *cd, s4 branchmpc, s4 targetmpc) -{ - s4 *mcodeptr; - s4 disp; /* branch displacement */ - - /* calculate the patch position */ - - mcodeptr = (s4 *) (cd->mcodebase + branchmpc); - - /* Calculate the branch displacement. */ - - disp = targetmpc - branchmpc; - - /* I don't think we have to check for branch-displacement - overflow. +/-2GB should be enough. */ - - /* patch the branch instruction before the mcodeptr */ - - mcodeptr[-1] = disp; -} - - /* md_stacktrace_get_returnaddress ********************************************* Returns the return address of the current stackframe, specified by