We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb09af commit 851d42cCopy full SHA for 851d42c
test/threadstest.c
@@ -362,6 +362,13 @@ static void writer_fn(int id, int *iterations)
362
break;
363
} else
364
#endif
365
+ #ifdef __riscv
366
+ extern uint32_t OPENSSL_riscvcap_P[];
367
+ if (contention != 0 && OPENSSL_riscvcap_P[0] == 0x600f) {
368
+ if ((ossl_time2seconds(t2) - ossl_time2seconds(t1)) >= 4000)
369
+ break;
370
+ } else
371
+ #endif
372
if ((ossl_time2seconds(t2) - ossl_time2seconds(t1)) >= 4)
373
374
}
0 commit comments