|
From: <sv...@va...> - 2014-09-22 21:39:22
|
Author: florian
Date: Mon Sep 22 21:39:12 2014
New Revision: 2955
Log:
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.
Modified:
trunk/priv/main_globals.c
trunk/priv/main_globals.h
trunk/priv/main_main.c
trunk/pub/libvex.h
trunk/switchback/switchback.c
trunk/test_main.c
trunk/test_main.h
Modified: trunk/priv/main_globals.c
==============================================================================
--- trunk/priv/main_globals.c (original)
+++ trunk/priv/main_globals.c Mon Sep 22 21:39:12 2014
@@ -58,9 +58,6 @@
/* 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 };
Modified: trunk/priv/main_globals.h
==============================================================================
--- trunk/priv/main_globals.h (original)
+++ trunk/priv/main_globals.h Mon Sep 22 21:39:12 2014
@@ -59,9 +59,6 @@
/* trace flags */
extern Int vex_traceflags;
-/* Are we supporting valgrind checking? */
-extern Bool vex_valgrind_support;
-
/* Optimiser/front-end control */
extern VexControl vex_control;
Modified: trunk/priv/main_main.c
==============================================================================
--- trunk/priv/main_main.c (original)
+++ trunk/priv/main_main.c Mon Sep 22 21:39:12 2014
@@ -113,8 +113,6 @@
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 @@
/* Really start up .. */
vex_debuglevel = debuglevel;
- vex_valgrind_support = valgrind_support;
vex_control = *vcon;
vex_initdone = True;
vexSetAllocMode ( VexAllocModeTEMP );
Modified: trunk/pub/libvex.h
==============================================================================
--- trunk/pub/libvex.h (original)
+++ trunk/pub/libvex.h Mon Sep 22 21:39:12 2014
@@ -579,9 +579,6 @@
/* debug paranoia level */
Int debuglevel,
- /* Are we supporting valgrind checking? */
- Bool valgrind_support,
-
/* Control ... */
const VexControl* vcon
);
Modified: trunk/switchback/switchback.c
==============================================================================
--- trunk/switchback/switchback.c (original)
+++ trunk/switchback/switchback.c Mon Sep 22 21:39:12 2014
@@ -768,7 +768,7 @@
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;
Modified: trunk/test_main.c
==============================================================================
--- trunk/test_main.c (original)
+++ trunk/test_main.c Mon Sep 22 21:39:12 2014
@@ -127,7 +127,6 @@
LibVEX_Init ( &failure_exit, &log_bytes,
1, /* debug_paranoia */
- TEST_VSUPPORT, /* valgrind support */
&vcon );
Modified: trunk/test_main.h
==============================================================================
--- trunk/test_main.h (original)
+++ trunk/test_main.h Mon Sep 22 21:39:12 2014
@@ -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
|