|
From: <sv...@va...> - 2017-04-12 17:51:53
|
Author: petarj
Date: Wed Apr 12 18:51:45 2017
New Revision: 3348
Log:
fix early initialization of s390_host_hwcaps in LibVEX_FrontEnd
This is a follow-up to r3341 and r3344. r3341 split LibVEX_Translate into
LibVEX_FrontEnd and LibVEX_BackEnd. s390_host_hwcaps needs to be initialized
early when arch_host is VexArchS390X.
This also fixes none/tests/libvexmultiarch_test on MIPS64 BE platforms.
Modified:
trunk/priv/main_main.c
Modified: trunk/priv/main_main.c
==============================================================================
--- trunk/priv/main_main.c (original)
+++ trunk/priv/main_main.c Wed Apr 12 18:51:45 2017
@@ -362,6 +362,11 @@
vex_traceflags = vta->traceflags;
+ /* KLUDGE: export hwcaps. */
+ if (vta->arch_host == VexArchS390X) {
+ s390_host_hwcaps = vta->archinfo_host.hwcaps;
+ }
+
/* First off, check that the guest and host insn sets
are supported. */
@@ -438,9 +443,6 @@
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);
|