Skip to content

Commit aaf385c

Browse files
Debug linux-riscv64 CI workflow
1 parent 3c8e050 commit aaf385c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/threadstest.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,13 @@ static void writer_fn(int id, int *iterations)
357357
break;
358358
} else
359359
#endif
360+
#ifdef __riscv
361+
extern uint32_t OPENSSL_riscvcap_P[];
362+
if (contention != 0 && OPENSSL_riscvcap_P[0] == 0x200e) {
363+
if ((ossl_time2seconds(t2) - ossl_time2seconds(t1)) >= 4000)
364+
break;
365+
} else
366+
#endif
360367
if ((ossl_time2seconds(t2) - ossl_time2seconds(t1)) >= 4)
361368
break;
362369
}

0 commit comments

Comments
 (0)