|
From: <sv...@va...> - 2012-04-22 02:48:29
|
florian 2012-04-22 03:48:20 +0100 (Sun, 22 Apr 2012)
New Revision: 12532
Log:
Consolidate and update information about dependencies of
VG_(machine_get_hwcaps) for all architectures in pub_core_machine.h
and avoid double maintenance.
Modified files:
trunk/coregrind/m_machine.c
trunk/coregrind/pub_core_machine.h
Modified: trunk/coregrind/pub_core_machine.h (+4 -0)
===================================================================
--- trunk/coregrind/pub_core_machine.h 2012-04-22 00:53:07 -23:00 (rev 12531)
+++ trunk/coregrind/pub_core_machine.h 2012-04-22 03:48:20 +01:00 (rev 12532)
@@ -169,7 +169,11 @@
call VG_(machine_arm_set_has_NEON)
then safe to use VG_(machine_get_VexArchInfo)
+ -------------
+ s390x: initially: call VG_(machine_get_hwcaps)
+ then safe to use VG_(machine_get_VexArchInfo)
+
VG_(machine_get_hwcaps) may use signals (although it attempts to
leave signal state unchanged) and therefore should only be
called before m_main sets up the client's signal state.
Modified: trunk/coregrind/m_machine.c (+1 -29)
===================================================================
--- trunk/coregrind/m_machine.c 2012-04-22 00:53:07 -23:00 (rev 12531)
+++ trunk/coregrind/m_machine.c 2012-04-22 03:48:20 +01:00 (rev 12532)
@@ -356,36 +356,8 @@
(2) from the AT_SYSINFO entries the kernel gave us (ppc32 cache
line size). It's a bit nasty in the sense that there's no obvious
way to stop uses of some of this info before it's ready to go.
+ See pub_core_machine.h for more information about that.
- Current dependencies are:
-
- x86: initially: call VG_(machine_get_hwcaps)
-
- then safe to use VG_(machine_get_VexArchInfo)
- and VG_(machine_x86_have_mxcsr)
- -------------
- amd64: initially: call VG_(machine_get_hwcaps)
-
- then safe to use VG_(machine_get_VexArchInfo)
- -------------
- ppc32: initially: call VG_(machine_get_hwcaps)
- call VG_(machine_ppc32_set_clszB)
-
- then safe to use VG_(machine_get_VexArchInfo)
- and VG_(machine_ppc32_has_FP)
- and VG_(machine_ppc32_has_VMX)
- -------------
- ppc64: initially: call VG_(machine_get_hwcaps)
- call VG_(machine_ppc64_set_clszB)
-
- then safe to use VG_(machine_get_VexArchInfo)
- and VG_(machine_ppc64_has_VMX)
-
- -------------
- s390x: initially: call VG_(machine_get_hwcaps)
-
- then safe to use VG_(machine_get_VexArchInfo)
-
VG_(machine_get_hwcaps) may use signals (although it attempts to
leave signal state unchanged) and therefore should only be
called before m_main sets up the client's signal state.
|