diff --git a/common.h b/common.h index b8bac1ad27..b3fc6d7ded 100644 --- a/common.h +++ b/common.h @@ -372,6 +372,12 @@ typedef int blasint; #endif #endif +#if defined(ARCH_RISCV64) +#ifndef YIELDING +#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n"); +#endif +#endif + #ifdef __EMSCRIPTEN__ #define YIELDING