From: Julian Seward Date: Tue, 17 Jan 2006 01:58:24 +0000 (+0000) Subject: Increase size of the largest guest state handled. X-Git-Tag: svn/VALGRIND_3_2_0~379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c04df88c8ff69734036c1c673021820c270f047;p=thirdparty%2Fvalgrind.git Increase size of the largest guest state handled. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5532 --- diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 013a4cf875..a8972220d4 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -1296,12 +1296,13 @@ void mc_post_mem_write(CorePart part, ThreadId tid, Addr a, SizeT len) /* When some chunk of guest state is written, mark the corresponding shadow area as valid. This is used to initialise arbitrarily large - chunks of guest state, hence the (somewhat arbitrary) 1024 limit. + chunks of guest state, hence the _SIZE value, which has to be as + big as the biggest guest state. */ static void mc_post_reg_write ( CorePart part, ThreadId tid, OffT offset, SizeT size) { -# define MAX_REG_WRITE_SIZE 1120 +# define MAX_REG_WRITE_SIZE 1264 UChar area[MAX_REG_WRITE_SIZE]; tl_assert(size <= MAX_REG_WRITE_SIZE); VG_(memset)(area, VGM_BYTE_VALID, size);