]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
ppc: The functions dis_dfp_fmt_conv and dis_dfp_exponent_test
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 14 Sep 2015 19:36:29 +0000 (19:36 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 14 Sep 2015 19:36:29 +0000 (19:36 +0000)
should only be executed in case DFP is supported. Add missing
guards.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3188

VEX/priv/guest_ppc_toIR.c

index 1f28da6f5387df56665fd0fb1586fa3939b640d3..bc0bdcbd45c8d1d1f67f21b062761becb4846349 100644 (file)
@@ -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;