panic: fix illegal instruction test to be compatible with RISC-V

This commit is contained in:
Ivan Grokhotkov
2020-11-24 16:39:26 +01:00
committed by Jakob Hasse
parent 8dcdca8d76
commit 9827adaa09

View File

@@ -112,7 +112,11 @@ static void test_stack_overflow(void)
static void test_illegal_instruction(void)
{
#if __XTENSA__
__asm__ __volatile__("ill");
#elif __riscv
__asm__ __volatile__("unimp");
#endif
}
static void test_instr_fetch_prohibited(void)