Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.

2014-11-19 Thread Paolo Bonzini
On 18/11/2014 23:50, Peter Maydell wrote: > On 18 November 2014 21:19, Paolo Bonzini wrote: >> The isa-debugexit and testdev character device do not exit with exitcode >> 0, in order to distinguish an exit from a system power down; the >> low-order bit is always 1. The return values then should

Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.

2014-11-18 Thread Peter Maydell
On 18 November 2014 21:19, Paolo Bonzini wrote: > The isa-debugexit and testdev character device do not exit with exitcode > 0, in order to distinguish an exit from a system power down; the > low-order bit is always 1. The return values then should be 1 and 3 > instead of 0 and 1. Semihosting is

Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.

2014-11-18 Thread Liviu Ionescu
On 18 Nov 2014, at 23:19, Paolo Bonzini wrote: > The isa-debugexit and testdev character device do not exit with exitcode > 0, in order to distinguish an exit from a system power down; the > low-order bit is always 1. The return values then should be 1 and 3 > instead of 0 and 1. I have no exp

Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.

2014-11-18 Thread Paolo Bonzini
On 18/11/2014 21:08, Peter Maydell wrote: > 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.) The isa-debugexit and testdev character device do not exit with exitcode 0, in order to distinguis

Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.

2014-11-18 Thread Peter Maydell
On 18 November 2014 20:01, Liviu Ionescu 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 re

[Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.

2014-11-18 Thread Liviu Ionescu
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 applic