]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Initialize s390_host_hwcaps early in LibVEX_FrontEnd.
authorMark Wielaard <mark@klomp.org>
Tue, 4 Apr 2017 12:02:14 +0000 (12:02 +0000)
committerMark Wielaard <mark@klomp.org>
Tue, 4 Apr 2017 12:02:14 +0000 (12:02 +0000)
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

VEX/priv/main_main.c

index a13d2abc825a04ceb8952d193dd4c89e4001d72b..f658ed8372750d6f1482704936af15c78813620b 100644 (file)
@@ -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