summaryrefslogtreecommitdiff
path: root/memcheck/mc_main.c
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-01-17 01:58:24 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-01-17 01:58:24 +0000
commit62eae5f17753c804852653adb1fd8dd5b0371724 (patch)
treed994a5bf9f8221ef327f79a0f32b7a10e1063ffb /memcheck/mc_main.c
parent34593e575d279b1537837a801dcc8c1c1f901a97 (diff)
Increase size of the largest guest state handled.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5532 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'memcheck/mc_main.c')
-rw-r--r--memcheck/mc_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c
index 013a4cf8..a8972220 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);