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:
parent
b2aab9f0e8
commit
01815af28e
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue