The Corstone300 simulator (ARM Cortex-M55 FVP) has a quite annoying exit condition:
It waits until EXITTHESIM is printed to the terminal by the target software.
When a program executed successfully, this will be done at the end of the main function, however if execution stops earlier with an call to exit(1) (i.e. from TVMPlatformAbort()) we currently can not catch this.
We need to find a workaround for this. Here are some ideas:
Try to overwrite the exit() function in the MLIF lib
The Corstone300 simulator (ARM Cortex-M55 FVP) has a quite annoying exit condition:
EXITTHESIM
is printed to the terminal by the target software.When a program executed successfully, this will be done at the end of the
main
function, however if execution stops earlier with an call toexit(1)
(i.e. fromTVMPlatformAbort()
) we currently can not catch this.We need to find a workaround for this. Here are some ideas:
exit()
function in theMLIF
libatexit()
would work