]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove a function and global variable no longer needed.
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 22 Jun 2004 14:09:52 +0000 (14:09 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 22 Jun 2004 14:09:52 +0000 (14:09 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2435

coregrind/vg_main.c
include/vg_skin.h.base

index 929220e06cd553c87cab87176d13e79a9c411e57..53b6c31c442d49a6a79329d55027401b61071c7e 100644 (file)
@@ -179,10 +179,6 @@ ThreadId VG_(last_run_tid) = 0;
    descriptor or a socket descriptor. */
 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
    real. */
@@ -2975,7 +2971,6 @@ int main(int argc, char **argv)
    //--------------------------------------------------------------
    // Run!
    //--------------------------------------------------------------
-   VG_(running_on_simd_CPU) = True;
    VGP_POPCC(VgpStartup);
    VGP_PUSHCC(VgpSched);
 
@@ -2986,7 +2981,6 @@ int main(int argc, char **argv)
       src = VgSrc_FatalSig;
 
    VGP_POPCC(VgpSched);
-   VG_(running_on_simd_CPU) = False;
 
 
 
index 2017a3b593866b556fa672c5639ccb2d3e7098f5..b5d08922925c639bd681688788864c80f762ebdc 100644 (file)
@@ -1809,32 +1809,6 @@ extern void VG_(set_return_from_syscall_shadow) ( ThreadId tid,
 extern UInt VG_(get_exit_status_shadow) ( void );
 
 
-/*====================================================================*/
-/*=== 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            ===*/
 /*====================================================================*/