|
From: <sv...@va...> - 2006-02-17 11:42:25
|
Author: njn
Date: 2006-02-17 11:42:18 +0000 (Fri, 17 Feb 2006)
New Revision: 5655
Log:
Minor change in where a variable is assigned.
Modified:
branches/COMPVBITS/memcheck/mc_main.c
Modified: branches/COMPVBITS/memcheck/mc_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/COMPVBITS/memcheck/mc_main.c 2006-02-17 10:56:34 UTC (rev 56=
54)
+++ branches/COMPVBITS/memcheck/mc_main.c 2006-02-17 11:42:18 UTC (rev 56=
55)
@@ -910,7 +910,8 @@
static void set_address_range_perms ( Addr a, SizeT lenT, UWord vabits16=
,
UWord dsm_num )
{
- UWord vabits2, sm_off, sm_off16;
+ UWord sm_off, sm_off16;
+ UWord vabits2 =3D vabits16 & 0x3;
SizeT lenA, lenB, len_to_next_secmap;
Addr aNext;
SecMap* sm;
@@ -943,7 +944,6 @@
{
// Endianness doesn't matter here because all bytes are being set =
to
// the same value.
- UWord vabits2 =3D vabits16 & 0x3;
SizeT i;
for (i =3D 0; i < lenT; i++) {
set_vabits2(a + i, vabits2);
@@ -958,8 +958,6 @@
to use (part of the space-compression scheme). */
example_dsm =3D &sm_distinguished[dsm_num];
=20
- vabits2 =3D vabits16 & 0x3;
- =20
// We have to handle ranges covering various combinations of partial =
and
// whole sec-maps. Here is how parts 1, 2 and 3 are used in each cas=
e.
// Cases marked with a '*' are common.
|