mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-29 15:51:45 +00:00
cpu pause instruction for RISV-64 compatible gcc/clang.
This commit is contained in:
parent
2e939b10e9
commit
a5ee9c9d4f
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ static YQ2_ATTR_INLINE void Sys_CpuPause(void)
|
||||||
asm volatile("yield");
|
asm volatile("yield");
|
||||||
#elif defined(__powerpc__) || defined(__powerpc64__)
|
#elif defined(__powerpc__) || defined(__powerpc64__)
|
||||||
asm volatile("or 27,27,27");
|
asm volatile("or 27,27,27");
|
||||||
|
#elif defined(__riscv) && __riscv_xlen == 64
|
||||||
|
asm volatile(".insn i 0x0F, 0, x0, x0, 0x010");
|
||||||
#endif
|
#endif
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#if defined(_M_IX86) || defined(_M_X64)
|
#if defined(_M_IX86) || defined(_M_X64)
|
||||||
|
|
Loading…
Reference in a new issue