qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 23/49] semihosting: Split out semihost_sys_open


From: Peter Maydell
Subject: Re: [PATCH v3 23/49] semihosting: Split out semihost_sys_open
Date: Mon, 23 May 2022 17:54:32 +0100

On Mon, 23 May 2022 at 16:46, Richard Henderson
<richard.henderson@linaro.org> wrote:
> Also, I think I mentioned this in the v2 cover but not here, that having done 
> the errno
> conversion here for arm semihosting, it worked less well for mips and xtensa, 
> which have a
> rather better defined set of errnos.
>
> My question from v2 was: should we in fact convert back from gdb's errno to 
> host errno in
> gdbstub.c handle_file_io(), and then let each semihosting backend convert 
> from host to guest?

That sounds like it's probably a better idea (though I'm not sure
what host errno we use for the gdb "unknown errno" case)...

-- PMM



reply via email to

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