|
From: Nicholas N. <nj...@ca...> - 2004-06-22 14:10:06
|
CVS commit by nethercote:
Remove a function and global variable no longer needed.
M +0 -6 coregrind/vg_main.c 1.160
M +0 -26 include/vg_skin.h.base 1.22
--- valgrind/coregrind/vg_main.c #1.159:1.160
@@ -180,8 +180,4 @@ ThreadId VG_(last_run_tid) = 0;
Bool VG_(logging_to_filedes) = True;
-/* This Bool is needed by wrappers in vg_clientmalloc.c to decide how
- to behave. Initially we say False. */
-Bool VG_(running_on_simd_CPU) = False;
-
/* This is the argument to __NR_exit() supplied by the first thread to
call that syscall. We eventually pass that to __NR_exit() for
@@ -2976,5 +2972,4 @@ int main(int argc, char **argv)
// Run!
//--------------------------------------------------------------
- VG_(running_on_simd_CPU) = True;
VGP_POPCC(VgpStartup);
VGP_PUSHCC(VgpSched);
@@ -2987,5 +2982,4 @@ int main(int argc, char **argv)
VGP_POPCC(VgpSched);
- VG_(running_on_simd_CPU) = False;
--- valgrind/include/vg_skin.h.base #1.21:1.22
@@ -1811,30 +1811,4 @@
/*====================================================================*/
-/*=== General stuff for replacing functions ===*/
-/*====================================================================*/
-
-/* Some skins need to replace the standard definitions of some functions. */
-
-/* ------------------------------------------------------------------ */
-/* General stuff, for replacing any functions */
-
-/* Is the client running on the simulated CPU or the real one?
-
- Nb: If it is, and you want to call a function to be run on the real CPU,
- use one of the VALGRIND_NON_SIMD_CALL[123] macros in valgrind.h to call it.
-
- Nb: don't forget the function parentheses when using this in a
- condition... write this:
-
- if (VG_(is_running_on_simd_CPU)()) { ... } // calls function
-
- not this:
-
- if (VG_(is_running_on_simd_CPU)) { ... } // address of var!
-*/
-extern Bool VG_(is_running_on_simd_CPU) ( void );
-
-
-/*====================================================================*/
/*=== Specific stuff for replacing malloc() and friends ===*/
/*====================================================================*/
|