From: Nicholas Nethercote Date: Mon, 18 Oct 2004 14:08:16 +0000 (+0000) Subject: Arch-abstraction: X-Git-Tag: svn/VALGRIND_3_0_0~1510 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=411cf69104f41968e18edb78c02ba47a39d80f60;p=thirdparty%2Fvalgrind.git Arch-abstraction: - just a couple more constants moved git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2784 --- diff --git a/coregrind/core.h b/coregrind/core.h index 666eb2299b..43dfc9bc79 100644 --- a/coregrind/core.h +++ b/coregrind/core.h @@ -100,13 +100,6 @@ options or sizes, recompile, and still have a working system. ------------------------------------------------------------------ */ -/* Total number of spill slots available for allocation, if a TempReg - doesn't make it into a RealReg. Just bomb the entire system if - this value is too small; we don't expect it will ever get - particularly high. */ -#define VG_MAX_SPILLSLOTS 24 - - /* Constants for the slow translation lookup cache. */ #define VG_TRANSTAB_SLOW_BITS 11 #define VG_TRANSTAB_SLOW_SIZE (1 << VG_TRANSTAB_SLOW_BITS) diff --git a/coregrind/vg_signals.c b/coregrind/vg_signals.c index 6d49be5588..f79eeb1d1b 100644 --- a/coregrind/vg_signals.c +++ b/coregrind/vg_signals.c @@ -96,9 +96,6 @@ static const Char *signame(Int sigNo); Signal stack ------------------------------------------------------------------ */ -/* Valgrind's signal stack size, in words */ -#define VG_SIGSTACK_SIZE_W 10000 - /* We have to ask for signals to be delivered on an alternative stack, since it is possible, although unlikely, that we'll have to run client code from inside the Valgrind-installed signal handler. */ diff --git a/coregrind/x86/core_arch.h b/coregrind/x86/core_arch.h index d3469f5a8d..b9e306b2a8 100644 --- a/coregrind/x86/core_arch.h +++ b/coregrind/x86/core_arch.h @@ -307,10 +307,16 @@ arch_thread_t; /* --------------------------------------------------------------------- - Constants involving memory layout + Miscellaneous constants ------------------------------------------------------------------ */ -// base address of client address space +// Total number of spill slots available for register allocation. +#define VG_MAX_SPILLSLOTS 24 + +// Valgrind's signal stack size, in words. +#define VG_SIGSTACK_SIZE_W 10000 + +// Base address of client address space. #define CLIENT_BASE 0x00000000ul #endif // __X86_CORE_ARCH_H