X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Fjit%2Farm%2Fpatcher.c;h=36f0adfc328d561a9f6fbfa6b313d002f982011b;hb=342c9d8b43cb861e7eb7b9fd7e27efe824b57409;hp=da037dd68934f2f38f59cb768d6a80a7a02763c8;hpb=7a1c24acd4a25921caa4be2d4e7756e254fe659d;p=cacao.git diff --git a/src/vm/jit/arm/patcher.c b/src/vm/jit/arm/patcher.c index da037dd68..36f0adfc3 100644 --- a/src/vm/jit/arm/patcher.c +++ b/src/vm/jit/arm/patcher.c @@ -60,28 +60,6 @@ /*(inst) |= (1 << 23);*/ \ } -/* This is the same as gen_resolveload but does not check whether the opcode - * is 'clean' (= current offset is zero). - */ -#define gen_resolveload_unchecked(inst,offset) \ - assert((offset) >= -0x0fff && (offset) <= 0x0fff); \ - if ((offset) < 0) { \ - (inst) = ((inst) & 0xff7ff000) | ((-(offset)) & 0x0fff); \ - /*(inst) &= ~(1 << 23);*/ \ - } else { \ - (inst) = ((inst) & 0xfffff000) | ((offset) & 0x0fff); \ - /*(inst) |= (1 << 23);*/ \ - } - -/* patch_md ******************************************************************** - - Patch back address in a machine dependent way - -*******************************************************************************/ -void patch_md(s4 md_patch, ptrint dest, void* ref) -{ - gen_resolveload_unchecked(*((s4 *) dest), (s4) ref); -} /* patcher_patch_code **********************************************************