From 1795c003a234aef6ae496edfe4aca83a25c3bd19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Wed, 3 Jun 2020 10:00:09 +0000 Subject: [PATCH] skip requires_syscall_get_nprocs on gem5 --- path_properties.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/path_properties.py b/path_properties.py index 6af370f..c70e46d 100644 --- a/path_properties.py +++ b/path_properties.py @@ -82,6 +82,7 @@ class PathProperties: 'requires_m5ops': False, # gem5 fatal: syscall getcpu (#168) unimplemented. 'requires_syscall_getcpu': False, + 'requires_syscall_get_nprocs': False, 'requires_semihosting': False, # The example requires sudo, which usually implies that it can do something # deeply to the system it runs on, which would preventing further interactive @@ -270,7 +271,9 @@ class PathProperties: self['signal_received'] is not None or self['requires_dynamic_library'] or self['requires_semihosting'] or - self['requires_syscall_getcpu'] + self['requires_syscall_getcpu'] or + # https://gem5.atlassian.net/browse/GEM5-622 + self['requires_syscall_get_nprocs'] ) ) and not ( @@ -687,6 +690,7 @@ path_properties_tuples = ( }, ), 'count.cpp': {'more_than_1s': True}, + 'thread_hardware_concurrency.cpp': {'requires_syscall_get_nprocs': True}, 'initialization_types.cpp': {'cc_flags': ['-Wno-unused-variable', LF, '-Wno-unused-but-set-variable', LF]}, 'm5ops.cpp': {'allowed_emulators': {'gem5'}}, @@ -775,6 +779,7 @@ path_properties_tuples = ( 'requires_syscall_getcpu': True, 'test_run_args': {'cpus': 2}, }, + 'sysconf.c': {'requires_syscall_get_nprocs': True}, 'time_boot.c': {'requires_sudo': True}, 'virt_to_phys_user.c': {'requires_argument': True}, }