chiark / gitweb /
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 309be5c3969b63c8ae83a92a06a74d14f8a92fe8..4ce60159e6f7abe0f59b232a68ae6ef921b7fe9c 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);
 }