are_valid_hwcaps.
git-svn-id: svn://svn.valgrind.org/vex/trunk@3033
code. But that info is not passed to emit_S390Instr. Only mode64 is
being passed. So, ideally, we want this passed as an argument, too.
Until then, we use a global variable. This variable is set as a side
- effect of iselSB_S390. This is safe because instructions are selected
- before they are emitted. */
+ effect of LibVEX_Translate. */
UInt s390_host_hwcaps;
ISelEnv *env;
UInt hwcaps_host = archinfo_host->hwcaps;
- /* KLUDGE: export hwcaps. */
- s390_host_hwcaps = hwcaps_host;
-
/* Do some sanity checks */
vassert((VEX_HWCAPS_S390X(hwcaps_host) & ~(VEX_HWCAPS_S390X_ALL)) == 0);
case VexArchS390X:
mode64 = True;
+ /* KLUDGE: export hwcaps. */
+ s390_host_hwcaps = vta->archinfo_host.hwcaps;
getAllocableRegs_S390 ( &n_available_real_regs,
&available_real_regs, mode64 );
isMove = (__typeof__(isMove)) isMove_S390Instr;