From: Mark Wielaard Date: Tue, 4 Apr 2017 12:02:14 +0000 (+0000) Subject: Initialize s390_host_hwcaps early in LibVEX_FrontEnd. X-Git-Tag: svn/VALGRIND_3_13_0^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cb14e1dbdc7d3c9243f938608338cdc63ff970b;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/vex/trunk@3344 --- diff --git a/VEX/priv/main_main.c b/VEX/priv/main_main.c index a13d2abc82..f658ed8372 100644 --- a/VEX/priv/main_main.c +++ b/VEX/priv/main_main.c @@ -438,6 +438,9 @@ IRSB* LibVEX_FrontEnd ( /*MOD*/ VexTranslateArgs* vta, 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 @@ static void libvex_BackEnd ( const VexTranslateArgs *vta, 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