ztest: error_hook: Exclude cortex_r8_virtual from divide-by-zero tests

Cortex-R8 emulated in Renode doesn't trigger exceptions on divide by zero.
We only skip the virtual SoC, so the test will still apply on a physical
target.

Signed-off-by: Marek Slowinski <mslowinski@antmicro.com>
Signed-off-by: Mateusz Hołenko <mholenko@antmicro.com>
This commit is contained in:
Marek Slowinski 2024-06-03 14:32:56 +02:00 committed by Alberto Escolar
parent 9b9d39d578
commit 2088f6d35f
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ __no_optimization static void trigger_fault_divide_zero(void)
#if (defined(CONFIG_SOC_SERIES_MPS2) && defined(CONFIG_QEMU_TARGET)) || \
(defined(CONFIG_SOC_SERIES_MPS3) && defined(CONFIG_QEMU_TARGET)) || \
defined(CONFIG_BOARD_QEMU_CORTEX_A53) || defined(CONFIG_SOC_QEMU_ARC) || \
defined(CONFIG_SOC_CORTEX_R8_VIRTUAL) || \
defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) || \
defined(CONFIG_BOARD_QEMU_CORTEX_R5) || \
defined(CONFIG_ARMV8_R) || defined(CONFIG_AARCH32_ARMV8_R) || \