Get rid of baseBlock.  Now, when generated code is running, the guest
state pointer points directly at the ThreadState.arch.vex field, thus
updating it in place and avoiding a lot of code (and time-wasting)
which copies stuff back and forth to baseBlock.

Fix zillions of other places in the system where the current thread id
is needed.  It is now passed to all needed places.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3090 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_default.c b/coregrind/vg_default.c
index 967aa9d..2283b53 100644
--- a/coregrind/vg_default.c
+++ b/coregrind/vg_default.c
@@ -79,7 +79,7 @@
    malloc()-replacing tool cannot forget to implement TL_(malloc)() or
    TL_(free)().  */
 __attribute__ ((weak))
-void* TL_(malloc)( SizeT size )
+void* TL_(malloc)( ThreadId tid, SizeT size )
 {
    if (VG_(sk_malloc_called_by_scheduler))
       return VG_(cli_malloc)(VG_MIN_MALLOC_SZB, size);
@@ -88,7 +88,7 @@
 }
 
 __attribute__ ((weak))
-void  TL_(free)( void* p )
+void  TL_(free)( ThreadId tid, void* p )
 {
    /* see comment for TL_(malloc)() above */
    if (VG_(sk_malloc_called_by_scheduler))