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.
git-svn-id: svn://svn.valgrind.org/vex/trunk@3348
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. */
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);