[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 06/15] target/arm/arm-semi: Use set_swi_errno
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v2 06/15] target/arm/arm-semi: Use set_swi_errno() in gdbstub callback functions |
Date: |
Mon, 7 Oct 2019 10:13:11 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
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 having them call
> set_swi_errno() to set the semihosting errno.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> target/arm/arm-semi.c | 27 ++++++---------------------
> 1 file changed, 6 insertions(+), 21 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~