]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
arm: Remove global arm_hwcaps and one FIXME.
authorFlorian Krohm <flo2030@eich-krohm.de>
Thu, 4 Dec 2025 20:38:24 +0000 (20:38 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Thu, 4 Dec 2025 20:38:24 +0000 (20:38 +0000)
Followup to cd9d7d0d2edeef5ef37582c6d6fa55ca3c3bcccd

VEX/priv/host_arm_defs.c
VEX/priv/host_arm_defs.h
VEX/priv/host_arm_isel.c

index a838565a20149546e121996a7d321a1c80d4d04a..3ca8b22a5daabb8b879151704f362829bf000bea 100644 (file)
@@ -39,7 +39,7 @@
 #include "host_generic_regs.h"
 #include "host_arm_defs.h"
 
-UInt arm_hwcaps = 0;
+static UInt arm_hwcaps;
 
 
 /* --------- Registers. --------- */
@@ -3080,6 +3080,8 @@ Int emit_ARMInstr ( /*MB_MOD*/Bool* is_profInc,
    vassert(mode64 == False);
    vassert(0 == (((HWord)buf) & 3));
 
+   arm_hwcaps = archinfo_host->hwcaps;
+
    switch (i->tag) {
       case ARMin_Alu: {
          UInt     instr, subopc;
index d6dbc4ee27cc7291ab7a1468e95d81b7c191feee..b8399075d9a367775d9c5afcb2ecf626a7b63d29 100644 (file)
@@ -32,9 +32,6 @@
 #include "libvex.h"                      // VexArch
 #include "host_generic_regs.h"           // HReg
 
-extern UInt arm_hwcaps;
-
-
 /* --------- Registers. --------- */
 
 #define ST_IN static inline
index 90bc699fc4a4aeeef194b0d88c63ec943379541b..71bf871c4f853d8b21bc0d09ce2351fe551d5601 100644 (file)
@@ -6553,9 +6553,6 @@ HInstrArray* iselSB_ARM ( const IRSB* bb,
    /* guard against unexpected space regressions */
    vassert(sizeof(ARMInstr) <= 28);
 
-   /* hwcaps should not change from one ISEL call to another. */
-   arm_hwcaps = hwcaps_host; // JRS 2012 Mar 31: FIXME (RM)
-
    /* Make up an initial environment to use. */
    env = LibVEX_Alloc_inline(sizeof(ISelEnv));
    env->vreg_ctr = 0;