Discussion:
vex: r3344 - /trunk/priv/main_main.c
Add Reply
s***@valgrind.org
2017-04-04 12:02:14 UTC
Reply
Permalink
Raw Message
Author: mjw
Date: Tue Apr 4 13:02:14 2017
New Revision: 3344

Log:
Initialize s390_host_hwcaps early in LibVEX_FrontEnd.

VEX svn r3341 split LibVEX_Translate into LibVEX_FrontEnd and
LibVEX_BackEnd. The s390_host_hwcaps (KLUDGE) needs to be initialized
early in LibVEX_FrontEnd.

Modified:
trunk/priv/main_main.c

Modified: trunk/priv/main_main.c
==============================================================================
--- trunk/priv/main_main.c (original)
+++ trunk/priv/main_main.c Tue Apr 4 13:02:14 2017
@@ -438,6 +438,9 @@
break;

case VexArchS390X:
+ /* KLUDGE: export hwcaps. */
+ s390_host_hwcaps = vta->archinfo_host.hwcaps;
+
preciseMemExnsFn
= S390FN(guest_s390x_state_requires_precise_mem_exns);
disInstrFn = S390FN(disInstr_S390);
@@ -951,8 +954,6 @@

case VexArchS390X:
mode64 = True;
- /* KLUDGE: export hwcaps. */
- s390_host_hwcaps = vta->archinfo_host.hwcaps;
rRegUniv = S390FN(getRRegUniverse_S390());
isMove = CAST_TO_TYPEOF(isMove) S390FN(isMove_S390Instr);
getRegUsage

Loading...