--- a/src/native/entropy_cpu_stubs.c +++ b/src/native/entropy_cpu_stubs.c @@ -161,7 +161,12 @@ #if defined (__mips__) static inline unsigned long get_count(void) { unsigned long count; - __asm__ __volatile__ ("rdhwr %[rt], $2" : [rt] "=d" (count)); + __asm__ __volatile__ ( + ".set push\n\t" + ".set mips32r2\n\t" + "rdhwr %[rt], $2\n\t" + ".set pop" + : [rt] "=d" (count)); return count; } #endif