ostest/fpu_test: enable for FLAT mode only

As per the `HAVE_FPU` in `fpu.c`, fpu_test is only available for
FLAT build. So user_main should enable fpu_test for FLAT build also,
otherwise ostest will fail for PROTECTED build.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-08-03 10:37:48 +08:00 committed by Xiang Xiao
parent 38ae8e7827
commit ab2e45a86c

View File

@ -346,7 +346,7 @@ static int user_main(int argc, char *argv[])
#endif
#if defined(CONFIG_ARCH_FPU) && !defined(CONFIG_TESTING_OSTEST_FPUTESTDISABLE) && \
!defined(CONFIG_BUILD_KERNEL)
defined(CONFIG_BUILD_FLAT)
/* Check that the FPU is properly supported during context switching */
printf("\nuser_main: FPU test\n");