From: Julian Seward Date: Fri, 18 Feb 2005 09:39:05 +0000 (+0000) Subject: Clean up startup grunge a bit. X-Git-Tag: svn/VALGRIND_3_0_0~1069 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f62998dc1be5d712aa8036164dac7415b09a8a76;p=thirdparty%2Fvalgrind.git Clean up startup grunge a bit. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3249 --- diff --git a/coregrind/amd64/state.c b/coregrind/amd64/state.c index 209e28b254..c5d9cdc926 100644 --- a/coregrind/amd64/state.c +++ b/coregrind/amd64/state.c @@ -73,27 +73,14 @@ void VGA_(init_thread1state) ( Addr client_rip, VG_(memset)(&arch->vex_shadow, 0, sizeof(VexGuestAMD64State)); /* Put essential stuff into the new state. */ - VG_(printf)("startup rsp 0x%llx rip 0x%llx\n", rsp_at_startup, client_rip); + if (0) + VG_(printf)("startup rsp 0x%llx rip 0x%llx\n", + rsp_at_startup, client_rip); arch->vex.guest_RSP = rsp_at_startup; arch->vex.guest_RIP = client_rip; - - // XXX: something will probably have to be done with the segment - // registers, once they're added to Vex-AMD64. -#if 0 - /* initialise %cs, %ds and %ss to point at the operating systems - default code, data and stack segments */ - asm volatile("movw %%cs, %0" - : - : "m" (arch->vex.guest_CS)); - asm volatile("movw %%ds, %0" - : - : "m" (arch->vex.guest_DS)); - asm volatile("movw %%ss, %0" - : - : "m" (arch->vex.guest_SS)); -#endif } + /*------------------------------------------------------------*/ /*--- Thread stuff ---*/ /*------------------------------------------------------------*/