From: Nicholas Nethercote Date: Wed, 11 May 2005 18:57:02 +0000 (+0000) Subject: Move VG_(dispatch_ctr) out of vg_main.c, which never touches it, into X-Git-Tag: svn/VALGRIND_3_0_0~655 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9a39240ba6fe0fa571724a145a080766c0e5eb3;p=thirdparty%2Fvalgrind.git Move VG_(dispatch_ctr) out of vg_main.c, which never touches it, into vg_scheduler.c, which does. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3663 --- diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index 71196fe10c..ae87d9d749 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -162,9 +162,6 @@ VexSubArch VG_(vex_subarch) = VexSubArch_INVALID; Running stuff ------------------------------------------------------------------ */ -/* Counts downwards in VG_(run_innerloop). */ -UInt VG_(dispatch_ctr); - /* 64-bit counter for the number of basic blocks done. */ ULong VG_(bbs_done) = 0; diff --git a/coregrind/vg_scheduler.c b/coregrind/vg_scheduler.c index 9f18381aa5..f5490b86e5 100644 --- a/coregrind/vg_scheduler.c +++ b/coregrind/vg_scheduler.c @@ -85,6 +85,9 @@ ThreadState VG_(threads)[VG_N_THREADS]; /* If true, a fault is Valgrind-internal (ie, a bug) */ Bool VG_(my_fault) = True; +/* Counts downwards in VG_(run_innerloop). */ +UInt VG_(dispatch_ctr); + /* Forwards */ static void do_client_request ( ThreadId tid ); static void scheduler_sanity ( ThreadId tid );