From: Cerion Armour-Brown Date: Thu, 17 Feb 2005 16:14:16 +0000 (+0000) Subject: correction to branch instr for ppc hack X-Git-Tag: svn/VALGRIND_3_0_1^2~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2a16a41209027606bc2f9c6ae3d88c3ed5a0ba3;p=thirdparty%2Fvalgrind.git correction to branch instr for ppc hack git-svn-id: svn://svn.valgrind.org/vex/trunk@925 --- diff --git a/VEX/switchback/switchback.c b/VEX/switchback/switchback.c index 98e1336cee..0ef08d8d80 100644 --- a/VEX/switchback/switchback.c +++ b/VEX/switchback/switchback.c @@ -280,7 +280,7 @@ void switchback ( void ) assert(p[0] == 0 /* whatever the encoding for nop is */); /* branch to diff */ - p[0] = ((18<<26) | ((diff >> 2) & 0xFFFFFF) | (0<<1) | (0<<0)); + p[0] = ((18<<26) | (diff & 0x3FFFFFC) | (0<<1) | (0<<0)); flush_cache( &p[0], sizeof(UInt) );