qemu-devel
[Top][All Lists]
Advanced

[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: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.
Date: Wed, 19 Nov 2014 10:34:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0


On 18/11/2014 23:50, Peter Maydell wrote:
> On 18 November 2014 21:19, Paolo Bonzini <address@hidden> 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 isn't a test device -- it's an implementation of an
> ABI (mostly intended for almost-but-not-quite-bare-metal programs).
> I'm pretty sure that exiting anything except 0 on a successful
> exit request by the guest will break usage of QEMU in scenarios
> like the gcc test suite.

Thanks!  (FWIW, I don't find the behavior of those devices very useful
either... just mentioning them for the sake of consistency).

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]