about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--fail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fail.c b/fail.c
index a054e6e..b1d3191 100644
--- a/fail.c
+++ b/fail.c
@@ -127,6 +127,8 @@ void illegalins()
 	__asm__ __volatile__ (".word 0x00800011" : : : "memory");
 #elif defined(__powerpc__)
 	__asm__ __volatile__ (".long 0" : : : "memory");
+#elif defined(__riscv)
+	__asm__ __volatile__ ("unimp" : : : "memory");
 #else
 	#error implement illegalins for this architecture
 #endif