From: Carl Love Date: Fri, 6 Sep 2013 16:49:42 +0000 (+0000) Subject: The patch used the binary constants 0b10000 and 0b10001. The 0b designator X-Git-Tag: svn/VALGRIND_3_9_0^2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45d0a88198f04823b526fb0cf02b8ea8f6769428;p=thirdparty%2Fvalgrind.git The patch used the binary constants 0b10000 and 0b10001. The 0b designator is supported by the GCC extensions but not all compilers seem to support the 0b extension in GCC. Therefore, the binary constats were changed to their equivalent hex values as suggested by Florian. The Bugzilla for the change is 324518. git-svn-id: svn://svn.valgrind.org/vex/trunk@2753 --- diff --git a/VEX/priv/guest_ppc_toIR.c b/VEX/priv/guest_ppc_toIR.c index 25cb505d38..ab13815f44 100644 --- a/VEX/priv/guest_ppc_toIR.c +++ b/VEX/priv/guest_ppc_toIR.c @@ -6741,10 +6741,10 @@ static Bool dis_cache_manage ( UInt theInstr, // ISA 2.07. If valid, then we simply set b21to25 to zero since we have no // means of modeling the hint anyway. if (opc1 == 0x1F && ((opc2 == 0x116) || (opc2 == 0xF6))) { - if (b21to25 == 0b10000 || b21to25 < 0b10000) + if (b21to25 == 0x10 || b21to25 < 0x10) b21to25 = 0; } - if (opc1 == 0x1F && opc2 == 0x116 && b21to25 == 0b10001) + if (opc1 == 0x1F && opc2 == 0x116 && b21to25 == 0x11) b21to25 = 0; if (opc1 == 0x1F && opc2 == 0x3F6) { // dcbz