From: Florian Krohm Date: Mon, 14 Sep 2015 19:36:29 +0000 (+0000) Subject: ppc: The functions dis_dfp_fmt_conv and dis_dfp_exponent_test X-Git-Tag: svn/VALGRIND_3_11_0^2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a4aca00e65849c5e2e82c89dcc066617dbe033;p=thirdparty%2Fvalgrind.git ppc: The functions dis_dfp_fmt_conv and dis_dfp_exponent_test should only be executed in case DFP is supported. Add missing guards. git-svn-id: svn://svn.valgrind.org/vex/trunk@3188 --- diff --git a/VEX/priv/guest_ppc_toIR.c b/VEX/priv/guest_ppc_toIR.c index 1f28da6f53..bc0bdcbd45 100644 --- a/VEX/priv/guest_ppc_toIR.c +++ b/VEX/priv/guest_ppc_toIR.c @@ -19172,6 +19172,7 @@ DisResult disInstr_PPC_WRK ( case 0x322: // POWER 7 inst, dcffix - DFP convert from fixed if (!allow_VX) goto decode_failure; + if (!allow_DFP) goto decode_noDFP; if (dis_dfp_fmt_conv( theInstr )) goto decode_success; goto decode_failure; @@ -19598,6 +19599,7 @@ DisResult disInstr_PPC_WRK ( goto decode_success; goto decode_failure; case 0xA2: // dtstexq - DFP Test exponent Quad + if (!allow_DFP) goto decode_noDFP; if (dis_dfp_exponent_test( theInstr ) ) goto decode_success; goto decode_failure;