aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2024-09-01 15:51:39 +0200
committerLaytan <laytanlaats@hotmail.com>2024-09-01 21:42:47 +0200
commit28c643d23f989937c8d530b49a2369e8cd9d39e2 (patch)
treefc78a1d9dccc3184c759b54f8e269cc2397857e4 /src/threading.cpp
parent722b638e2cbefcc1735256ef712cf2b28078a7fb (diff)
riscv compiler support
Diffstat (limited to 'src/threading.cpp')
-rw-r--r--src/threading.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/threading.cpp b/src/threading.cpp
index e30a20a06..af8fd803c 100644
--- a/src/threading.cpp
+++ b/src/threading.cpp
@@ -529,6 +529,9 @@ gb_internal gb_inline void yield_thread(void) {
_mm_pause();
#elif defined(GB_CPU_ARM)
__asm__ volatile ("yield" : : : "memory");
+#elif defined(GB_CPU_RISCV)
+ // I guess?
+ __asm__ volatile ("nop" : : : "memory");
#else
#error Unknown architecture
#endif