From 7332eb2ea7c2d5e960d748acebbd71cbb959db99 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Thu, 23 Nov 2023 11:44:35 +0100 Subject: [PATCH] board native_sim/posix: Provide NEVER/NSI_NEVER definitions Some native_posix specific apps/tests use the macro NEVER provided it also for native_sim until all have switched to the new NSI_NEVER. And ensure NSI_NEVER is also avaiable when building for native_posix to ease the transition. Signed-off-by: Alberto Escolar Piedras --- boards/posix/native_posix/hw_models_top.h | 1 + boards/posix/native_sim/native_posix_compat.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/boards/posix/native_posix/hw_models_top.h b/boards/posix/native_posix/hw_models_top.h index 47d3333277..ea50d0f949 100644 --- a/boards/posix/native_posix/hw_models_top.h +++ b/boards/posix/native_posix/hw_models_top.h @@ -15,6 +15,7 @@ extern "C" { #endif #define NEVER UINT64_MAX +#define NSI_NEVER UINT64_MAX void hwm_one_event(void); void hwm_init(void); diff --git a/boards/posix/native_sim/native_posix_compat.h b/boards/posix/native_sim/native_posix_compat.h index a2b5dc0299..6c943606f3 100644 --- a/boards/posix/native_sim/native_posix_compat.h +++ b/boards/posix/native_sim/native_posix_compat.h @@ -33,6 +33,8 @@ static ALWAYS_INLINE uint64_t hwm_get_time(void) return nsi_hws_get_time(); } +#define NEVER NSI_NEVER + #ifdef __cplusplus } #endif