From 9827adaa094a8db6d819edb6791293d092449164 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 24 Nov 2020 16:39:26 +0100 Subject: [PATCH] panic: fix illegal instruction test to be compatible with RISC-V --- tools/test_apps/system/panic/main/test_panic_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/test_apps/system/panic/main/test_panic_main.c b/tools/test_apps/system/panic/main/test_panic_main.c index 8e4c4f7d81..2aea62ab21 100644 --- a/tools/test_apps/system/panic/main/test_panic_main.c +++ b/tools/test_apps/system/panic/main/test_panic_main.c @@ -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)