]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Move registration of mc_pre_reg_read to mc_post_clo_init.
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 12 May 2012 18:06:35 +0000 (18:06 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 12 May 2012 18:06:35 +0000 (18:06 +0000)
This fixes the regtest failure for memcheck/tests/clireq_nofill on s390x.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12562

memcheck/mc_main.c

index 5675bdef20fa0ccc014a725868d37651373edf63..44514ee2f780eaaea35305381ffee7a8489e7aba 100644 (file)
@@ -6113,6 +6113,10 @@ static void mc_post_clo_init ( void )
       tl_assert(ocacheL1 == NULL);
       tl_assert(ocacheL2 == NULL);
    }
+
+   /* Do not check definedness of guest state if --undef-value-errors=no */
+   if (MC_(clo_mc_level) >= 2)
+      VG_(track_pre_reg_read) ( mc_pre_reg_read );
 }
 
 static void print_SM_info(char* type, int n_SMs)
@@ -6413,9 +6417,6 @@ static void mc_pre_clo_init(void)
    VG_(track_pre_mem_write)       ( check_mem_is_addressable );
    VG_(track_post_mem_write)      ( mc_post_mem_write );
 
-   if (MC_(clo_mc_level) >= 2)
-      VG_(track_pre_reg_read)     ( mc_pre_reg_read );
-
    VG_(track_post_reg_write)                  ( mc_post_reg_write );
    VG_(track_post_reg_write_clientcall_return)( mc_post_reg_write_clientcall );