X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=cacao.git;a=blobdiff_plain;f=src%2Fvm%2Fjit%2Fx86_64%2Fpatcher.c;h=2d394fff212ef8392a6c6dd7c30878fab9f9af03;hp=be4fd4e7a8c447f936875e22e0a07d59a280a5bf;hb=67702ed5605e84f33724aeee9ccf5f82ea774084;hpb=fa8651a5a680d2f25e03d6df5fd275e70d5cc696 diff --git a/src/vm/jit/x86_64/patcher.c b/src/vm/jit/x86_64/patcher.c index be4fd4e7a..2d394fff2 100644 --- a/src/vm/jit/x86_64/patcher.c +++ b/src/vm/jit/x86_64/patcher.c @@ -1,6 +1,6 @@ /* src/vm/jit/x86_64/patcher.c - x86_64 code patching functions - Copyright (C) 1996-2005, 2006, 2007, 2008, 2009 + Copyright (C) 1996-2005, 2006, 2007, 2008, 2009, 2010 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO This file is part of CACAO. @@ -87,9 +87,9 @@ static void patch_out_mfence(void *pc) assert((((uintptr_t) pc) & 3) < 2); if (((uintptr_t) pc) & 1) - *p = *p & 0x000000ff | 0x001f0f00; + *p = (*p & 0x000000ff) | 0x001f0f00; else - *p = *p & 0xff000000 | 0x00001f0f; + *p = (*p & 0xff000000) | 0x00001f0f; md_icacheflush(p, 4); }