]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Handle IRStmt_MFence in the tools.
authorJulian Seward <jseward@acm.org>
Fri, 7 Jan 2005 12:10:21 +0000 (12:10 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 7 Jan 2005 12:10:21 +0000 (12:10 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3217

addrcheck/ac_main.c
lackey/lk_main.c
memcheck/mc_translate.c

index f2022766c5c81e616eb51ef704b51daf73e84ddc..73e0de41c85e71db4821edb98dd01474cd2b8e48 100644 (file)
@@ -1030,6 +1030,9 @@ IRBB* TL_(instrument)(IRBB* bb_in, VexGuestLayout* layout, IRType hWordTy )
              }
              break;
 
+         case Ist_MFence:
+            break;
+
          default:
             VG_(printf)("\n");
             ppIRStmt(st);
@@ -1089,7 +1092,7 @@ IRBB* TL_(instrument)(IRBB* bb_in, VexGuestLayout* layout, IRType hWordTy )
       }
 
       /* And finally, copy the expr itself to the output. */
-      addStmtToIRBB( bb, dopyIRStmt(st));
+      addStmtToIRBB( bb, st );
    }
 
    return bb;
index 18e6b115d96ecbe08a29d6fd540e69bf53b98535..92accc0eda16d01b7a7f8f2f49273e472191f951 100644 (file)
@@ -184,7 +184,7 @@ IRBB* TL_(instrument)(IRBB* bb_in, VexGuestLayout* layout, IRType hWordTy )
             break;
 
          default:
-            addStmtToIRBB( bb, dopyIRStmt(st));
+            addStmtToIRBB( bb, st );
       }
    }
 
index b3f5ad2508da23428858d109f32385361f0e606a..516232407889ce2b54ae94a5b741562f59bece0f 100644 (file)
@@ -2230,6 +2230,8 @@ static Bool checkForBogusLiterals ( /*FLAT*/ IRStmt* st )
                 || isBogusAtom(st->Ist.STle.data);
       case Ist_Exit:
          return isBogusAtom(st->Ist.Exit.guard);
+      case Ist_MFence:
+         return False;
       default: 
       unhandled:
          ppIRStmt(st);
@@ -2319,6 +2321,9 @@ IRBB* TL_(instrument) ( IRBB* bb_in, VexGuestLayout* layout, IRType hWordTy )
             complainIfUndefined( &mce, st->Ist.Exit.guard );
             break;
 
+         case Ist_MFence:
+            break;
+
          case Ist_Dirty:
             do_shadow_Dirty( &mce, st->Ist.Dirty.details );
             break;