Skip to content

Commit 9d5a096

Browse files
aescolarcarlescufi
authored andcommitted
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 <[email protected]>
1 parent 54d1bb7 commit 9d5a096

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/native_simulator/common/src/include/nsi_cpu_if.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ extern "C" {
1414
#include "nsi_cpu_if_internal.h"
1515

1616
/*
17-
* Any symbol annotated by this macro will be visible outside of the
17+
* Any symbol annotated by these macros will be visible outside of the
1818
* embedded SW library, both by the native simulator runner,
1919
* and other possible embedded CPU's SW.
2020
*/
21-
#define NATIVE_SIMULATOR_IF __attribute__((visibility("default"))) \
22-
__attribute__((__section__(".native_sim_if")))
21+
#define NATIVE_SIMULATOR_IF_SECT(sect) __attribute__((visibility("default"))) \
22+
__attribute__((__section__(sect)))
23+
#define NATIVE_SIMULATOR_IF NATIVE_SIMULATOR_IF_SECT(".native_sim_if")
24+
#define NATIVE_SIMULATOR_IF_DATA NATIVE_SIMULATOR_IF_SECT(".native_sim_if.data")
25+
#define NATIVE_SIMULATOR_IF_TEXT NATIVE_SIMULATOR_IF_SECT(".native_sim_if.text")
26+
2327
/*
2428
* Implementation note:
2529
* The interface between the embedded SW and the native simulator is allocated in its

0 commit comments

Comments
 (0)