Re: [Qemu-devel] [PATCH v2 06/15] target/arm/arm-semi: Use set_swi_errno() in gdbstub callback functions

2019-10-07 Thread Richard Henderson
On 9/16/19 7:15 AM, Peter Maydell wrote: > When we are routing semihosting operations through the gdbstub, the > work of sorting out the return value and setting errno if necessary > is done by callback functions which are invoked by the gdbstub code. > Clean up some ifdeffery in those functions by

Re: [Qemu-devel] [PATCH v2 06/15] target/arm/arm-semi: Use set_swi_errno() in gdbstub callback functions

2019-10-03 Thread Philippe Mathieu-Daudé
On 9/16/19 4:15 PM, Peter Maydell wrote: When we are routing semihosting operations through the gdbstub, the work of sorting out the return value and setting errno if necessary is done by callback functions which are invoked by the gdbstub code. Clean up some ifdeffery in those functions by havin

[Qemu-devel] [PATCH v2 06/15] target/arm/arm-semi: Use set_swi_errno() in gdbstub callback functions

2019-09-16 Thread Peter Maydell
When we are routing semihosting operations through the gdbstub, the work of sorting out the return value and setting errno if necessary is done by callback functions which are invoked by the gdbstub code. Clean up some ifdeffery in those functions by having them call set_swi_errno() to set the semi