From: Florian Krohm Date: Mon, 22 Sep 2014 21:39:12 +0000 (+0000) Subject: Remove the valgrind_support parameter from LibVEX_Init. It's unused X-Git-Tag: svn/VALGRIND_3_11_0^2~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef35bc1491f899076f0f9d6f8549bb8758a21ece;p=thirdparty%2Fvalgrind.git Remove the valgrind_support parameter from LibVEX_Init. It's unused and looks like an anachronism. VEX is also cleaner without valgrind things creeping in. git-svn-id: svn://svn.valgrind.org/vex/trunk@2955 --- diff --git a/VEX/priv/main_globals.c b/VEX/priv/main_globals.c index f30f7709c2..e3d79c6b95 100644 --- a/VEX/priv/main_globals.c +++ b/VEX/priv/main_globals.c @@ -58,9 +58,6 @@ Int vex_debuglevel = 0; /* trace flags */ Int vex_traceflags = 0; -/* Are we supporting valgrind checking? */ -Bool vex_valgrind_support = False; - /* Max # guest insns per bb */ VexControl vex_control = { 0,0,False,0,0,0 }; diff --git a/VEX/priv/main_globals.h b/VEX/priv/main_globals.h index 3578812cc2..3b16976341 100644 --- a/VEX/priv/main_globals.h +++ b/VEX/priv/main_globals.h @@ -59,9 +59,6 @@ extern Int vex_debuglevel; /* trace flags */ extern Int vex_traceflags; -/* Are we supporting valgrind checking? */ -extern Bool vex_valgrind_support; - /* Optimiser/front-end control */ extern VexControl vex_control; diff --git a/VEX/priv/main_main.c b/VEX/priv/main_main.c index 0322a349fe..d970ef9c2f 100644 --- a/VEX/priv/main_main.c +++ b/VEX/priv/main_main.c @@ -113,8 +113,6 @@ void LibVEX_Init ( void (*log_bytes) ( HChar*, Int nbytes ), /* debug paranoia level */ Int debuglevel, - /* Are we supporting valgrind checking? */ - Bool valgrind_support, /* Control ... */ const VexControl* vcon ) @@ -195,7 +193,6 @@ void LibVEX_Init ( /* Really start up .. */ vex_debuglevel = debuglevel; - vex_valgrind_support = valgrind_support; vex_control = *vcon; vex_initdone = True; vexSetAllocMode ( VexAllocModeTEMP ); diff --git a/VEX/pub/libvex.h b/VEX/pub/libvex.h index ec48002ac7..6805f81f08 100644 --- a/VEX/pub/libvex.h +++ b/VEX/pub/libvex.h @@ -579,9 +579,6 @@ extern void LibVEX_Init ( /* debug paranoia level */ Int debuglevel, - /* Are we supporting valgrind checking? */ - Bool valgrind_support, - /* Control ... */ const VexControl* vcon ); diff --git a/VEX/switchback/switchback.c b/VEX/switchback/switchback.c index 02c0b77c77..1fa932c191 100644 --- a/VEX/switchback/switchback.c +++ b/VEX/switchback/switchback.c @@ -768,7 +768,7 @@ int main ( Int argc, HChar** argv ) vcon.guest_chase_thresh=0; vcon.iropt_level=2; - LibVEX_Init( failure_exit, log_bytes, 1, False, &vcon ); + LibVEX_Init( failure_exit, log_bytes, 1, &vcon ); LibVEX_Guest_initialise(&gst); gst.host_EvC_COUNTER = 999999999; // so we should never get an exit gst.host_EvC_FAILADDR = 0x5a5a5a5a5a5a5a5a; diff --git a/VEX/test_main.c b/VEX/test_main.c index 987ac6f8e4..802827cde0 100644 --- a/VEX/test_main.c +++ b/VEX/test_main.c @@ -127,7 +127,6 @@ int main ( int argc, char** argv ) LibVEX_Init ( &failure_exit, &log_bytes, 1, /* debug_paranoia */ - TEST_VSUPPORT, /* valgrind support */ &vcon ); diff --git a/VEX/test_main.h b/VEX/test_main.h index 0c537a0e51..720900f9ba 100644 --- a/VEX/test_main.h +++ b/VEX/test_main.h @@ -3,7 +3,6 @@ /* DEBUG RUN, ON V */ #if 1 -#define TEST_VSUPPORT True #define TEST_N_ITERS 1 #define TEST_N_BBS 1 #define TEST_FLAGS (1<<7)|(0<<6)|(1<<3)|(0<<2)|(0<<1)|(0<<0) @@ -11,7 +10,6 @@ /* CHECKING RUN, ON V */ #if 0 -#define TEST_VSUPPORT True #define TEST_N_ITERS 1 #define TEST_N_BBS 100000 #define TEST_FLAGS 0 @@ -19,7 +17,6 @@ /* PROFILING RUN, NATIVE */ #if 0 -#define TEST_VSUPPORT False #define TEST_N_ITERS 100 #define TEST_N_BBS 1000 #define TEST_FLAGS 0 @@ -27,7 +24,6 @@ /* PROFILING RUN, REDUCED WORKLOAD */ #if 0 -#define TEST_VSUPPORT False #define TEST_N_ITERS 3 #define TEST_N_BBS 1000 #define TEST_FLAGS 0