Move registration of mc_pre_reg_read to mc_post_clo_init.

This fixes the regtest failure for memcheck/tests/clireq_nofill on s390x.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12562
This commit is contained in:
Florian Krohm 2012-05-12 18:06:35 +00:00
parent 29f8d3cb83
commit 7d3eee1edf

View 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 );