diff options
author | Liviu Ionescu <ilg@livius.net> | 2014-12-11 12:07:48 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-12-11 12:07:48 +0000 |
commit | 1ecc3a2df168034b8ab33ff5ba6434ce3593dbb5 (patch) | |
tree | f8b20b341b40306812c8c4d14963fb8829f09b72 /vl.c | |
parent | a09f2d16f6b9f5bcdedb4d116bb54da86e9a3f6e (diff) | |
download | qemu-1ecc3a2df168034b8ab33ff5ba6434ce3593dbb5.zip qemu-1ecc3a2df168034b8ab33ff5ba6434ce3593dbb5.tar.gz qemu-1ecc3a2df168034b8ab33ff5ba6434ce3593dbb5.tar.bz2 |
Pass semihosting exit code back to system.
In order to run unit tests under semihosting, it is necessary to pass the
application exit code back to the system.
ARM defines only the code to be used for non-error application exit
(ADP_Stopped_ApplicationExit), all other codes should return non-zero
exit codes.
This patch checks if the application code passed via TARGET_SYS_EXIT is
ADP_Stopped_ApplicationExit, and return 0, otherwise return 1.
Signed-off-by: Liviu Ionescu <ilg@livius.net>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions