board: qemu_arc: skip trigger_fault_divide_zero test case

qemu arc has limited support for DIV/REM, no DIVZERO exception
throw, so we need to skip trigger_fault_divide_zero test case.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
Watson Zeng 2021-05-07 15:30:02 +08:00 committed by Carles Cufí
commit 01815af28e

View file

@ -106,13 +106,13 @@ __no_optimization static void trigger_fault_divide_zero(void)
/*
* While no optimization is enabled, some QEMU such as QEMU cortex a53
* series and QEMU mps2 series board will not trigger an exception for
* divide zero. They might need to enable the divide zero exception.
* We only skip the QEMU board here, this means this test will still
* apply on the physical board.
* series, QEMU mps2 series and QEMU ARC series boards will not trigger
* an exception for divide zero. They might need to enable the divide
* zero exception. We only skip the QEMU board here, this means this
* test will still apply on the physical board.
*/
#if (defined(CONFIG_SOC_SERIES_MPS2) && (CONFIG_QEMU_TARGET)) || \
(CONFIG_BOARD_QEMU_CORTEX_A53)
(CONFIG_BOARD_QEMU_CORTEX_A53) || (CONFIG_SOC_QEMU_ARC)
ztest_test_skip();
#endif
}