]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Increase size of the largest guest state handled.
authorJulian Seward <jseward@acm.org>
Tue, 17 Jan 2006 01:58:24 +0000 (01:58 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 17 Jan 2006 01:58:24 +0000 (01:58 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5532

memcheck/mc_main.c

index 013a4cf8751e3758ac0ce37da6720e5bc2a89061..a8972220d4456de7baf11f70a95aa5409da769ac 100644 (file)
@@ -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);