Re: [PATCH v2 2/7] semihosting: add the semihosting_exit_request function

2022-06-23 Thread Luc Michel
On 20:09 Wed 22 Jun , Peter Maydell wrote: > On Tue, 21 Jun 2022 at 13:59, Luc Michel wrote: > > > > Add the semihosting_exit_request function to be used by targets when > > handling an `exit' semihosted syscall. This function calls gdb_exit to > > close existing GDB connections, and qemu_syst

Re: [PATCH v2 2/7] semihosting: add the semihosting_exit_request function

2022-06-22 Thread Peter Maydell
On Tue, 21 Jun 2022 at 13:59, Luc Michel wrote: > > Add the semihosting_exit_request function to be used by targets when > handling an `exit' semihosted syscall. This function calls gdb_exit to > close existing GDB connections, and qemu_system_shutdown_request with > the new `guest-semi-exit' exit

Re: [PATCH v2 2/7] semihosting: add the semihosting_exit_request function

2022-06-22 Thread Eric Blake
On Tue, Jun 21, 2022 at 02:59:11PM +0200, Luc Michel wrote: > Add the semihosting_exit_request function to be used by targets when > handling an `exit' semihosted syscall. This function calls gdb_exit to > close existing GDB connections, and qemu_system_shutdown_request with > the new `guest-semi-e

Re: [PATCH v2 2/7] semihosting: add the semihosting_exit_request function

2022-06-21 Thread Laurent Vivier
Le 21/06/2022 à 14:59, Luc Michel a écrit : Add the semihosting_exit_request function to be used by targets when handling an `exit' semihosted syscall. This function calls gdb_exit to close existing GDB connections, and qemu_system_shutdown_request with the new `guest-semi-exit' exit reason. It s

[PATCH v2 2/7] semihosting: add the semihosting_exit_request function

2022-06-21 Thread Luc Michel
Add the semihosting_exit_request function to be used by targets when handling an `exit' semihosted syscall. This function calls gdb_exit to close existing GDB connections, and qemu_system_shutdown_request with the new `guest-semi-exit' exit reason. It sets the QEMU exit status given by the exit sys