base/dispatch.c: Check atomic copy of the probes flags, not the original.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 6 May 2023 23:58:39 +0000 (00:58 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 6 May 2023 23:58:39 +0000 (00:58 +0100)
Rather defeats the point otherwise.

base/dispatch.c

index 309be5c..4ce6015 100644 (file)
@@ -413,7 +413,7 @@ static unsigned get_hwcaps(void)
   unsigned hw;
 
   DISPATCH_LOAD(hwcaps, hw);
-  if (!(hwcaps & HF_PROBED)) { probe_hwcaps(); DISPATCH_LOAD(hwcaps, hw); }
+  if (!(hw & HF_PROBED)) { probe_hwcaps(); DISPATCH_LOAD(hwcaps, hw); }
   return (hw);
 }