|
[Valgrind-developers] Valgrind: r14930 - in /trunk/coregrind:
m_threadstate.c pub_core_threadstate.h
From: <sv...@va...> - 2015-02-13 16:26:54
|
Author: florian
Date: Fri Feb 13 16:26:44 2015
New Revision: 14930
Log:
Use LibVEX_GUEST_STATE_ALIGN introduced in VEX r3091.
Modified:
trunk/coregrind/m_threadstate.c
trunk/coregrind/pub_core_threadstate.h
Modified: trunk/coregrind/m_threadstate.c
==============================================================================
--- trunk/coregrind/m_threadstate.c (original)
+++ trunk/coregrind/m_threadstate.c Fri Feb 13 16:26:44 2015
@@ -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. ---*/
Modified: trunk/coregrind/pub_core_threadstate.h
==============================================================================
--- trunk/coregrind/pub_core_threadstate.h (original)
+++ trunk/coregrind/pub_core_threadstate.h Fri Feb 13 16:26:44 2015
@@ -97,14 +97,17 @@
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 --- */
}
|