]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use LibVEX_GUEST_STATE_ALIGN introduced in VEX r3091.
authorFlorian Krohm <florian@eich-krohm.de>
Fri, 13 Feb 2015 16:26:44 +0000 (16:26 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Fri, 13 Feb 2015 16:26:44 +0000 (16:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14930

coregrind/m_threadstate.c
coregrind/pub_core_threadstate.h

index c20000288d9fc380804b5b3bdd510ca75705a967..c53e406b0b33bab223e9086e80aa44dad2f62c44 100644 (file)
@@ -44,7 +44,8 @@
 
 ThreadId VG_(running_tid) = VG_INVALID_THREADID;
 
-ThreadState VG_(threads)[VG_N_THREADS] __attribute__((aligned(16)));
+ThreadState VG_(threads)[VG_N_THREADS]
+            __attribute__((aligned(LibVEX_GUEST_STATE_ALIGN)));
 
 /*------------------------------------------------------------*/
 /*--- Operations.                                          ---*/
index 2f322597db19be46fb79512e738a7ab0431bff6b..58d42f78a104bb4d4176de51d73ca691b99a06b0 100644 (file)
@@ -97,14 +97,17 @@ typedef
          scheduler.c. */
 
       /* Saved machine context. */
-      VexGuestArchState vex __attribute__((aligned(16)));
+      VexGuestArchState vex __attribute__((aligned(LibVEX_GUEST_STATE_ALIGN)));
 
       /* Saved shadow context (2 copies). */
-      VexGuestArchState vex_shadow1 __attribute__((aligned(16)));
-      VexGuestArchState vex_shadow2 __attribute__((aligned(16)));
+      VexGuestArchState vex_shadow1
+                        __attribute__((aligned(LibVEX_GUEST_STATE_ALIGN)));
+      VexGuestArchState vex_shadow2 
+                        __attribute__((aligned(LibVEX_GUEST_STATE_ALIGN)));
 
       /* Spill area. */
-      UChar vex_spill[LibVEX_N_SPILL_BYTES] __attribute__((aligned(16)));
+      UChar vex_spill[LibVEX_N_SPILL_BYTES]
+            __attribute__((aligned(LibVEX_GUEST_STATE_ALIGN)));
 
       /* --- END vex-mandated guest state --- */
    }