From 9d5a09668bfb21ab56450ce66992a3ec9f8b7e8d Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Tue, 10 Sep 2024 09:19:48 +0200 Subject: [PATCH] native_simulator: Get latest from upstream Align with native_simulator's upstream main b4b9791ac822ae300363dc3ebbc7b7ac200632ce Which includes: * b4b9791 NATIVE_SIMULATOR_IF macros: Provide version with explicit section names Signed-off-by: Alberto Escolar Piedras --- .../native_simulator/common/src/include/nsi_cpu_if.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/native_simulator/common/src/include/nsi_cpu_if.h b/scripts/native_simulator/common/src/include/nsi_cpu_if.h index 991b0b29917..e8521fb9768 100644 --- a/scripts/native_simulator/common/src/include/nsi_cpu_if.h +++ b/scripts/native_simulator/common/src/include/nsi_cpu_if.h @@ -14,12 +14,16 @@ extern "C" { #include "nsi_cpu_if_internal.h" /* - * Any symbol annotated by this macro will be visible outside of the + * Any symbol annotated by these macros will be visible outside of the * embedded SW library, both by the native simulator runner, * and other possible embedded CPU's SW. */ -#define NATIVE_SIMULATOR_IF __attribute__((visibility("default"))) \ - __attribute__((__section__(".native_sim_if"))) +#define NATIVE_SIMULATOR_IF_SECT(sect) __attribute__((visibility("default"))) \ + __attribute__((__section__(sect))) +#define NATIVE_SIMULATOR_IF NATIVE_SIMULATOR_IF_SECT(".native_sim_if") +#define NATIVE_SIMULATOR_IF_DATA NATIVE_SIMULATOR_IF_SECT(".native_sim_if.data") +#define NATIVE_SIMULATOR_IF_TEXT NATIVE_SIMULATOR_IF_SECT(".native_sim_if.text") + /* * Implementation note: * The interface between the embedded SW and the native simulator is allocated in its