[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system. |
Date: |
Tue, 18 Nov 2014 20:08:53 +0000 |
On 18 November 2014 20:01, Liviu Ionescu <address@hidden> wrote:
> 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 <address@hidden>
Applied to target-arm.next, thanks.
(That's
https://git.linaro.org/people/peter.maydell/qemu-arm.git target-arm.next
which is a *rebasing* branch.)
-- PMM