[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 36/49] gdbstub: Widen gdb_syscall_complete_cb return value
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 36/49] gdbstub: Widen gdb_syscall_complete_cb return value |
Date: |
Mon, 23 May 2022 14:32:56 +0100 |
On Sat, 21 May 2022 at 01:04, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Always pass a uint64_t. This resolves a FIXME in the
> m68k and nios2 semihosting that we've lost data.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> include/exec/gdbstub.h | 3 +--
> gdbstub.c | 7 ++++---
> semihosting/arm-compat-semi.c | 9 ++++-----
> semihosting/console.c | 7 +++----
> semihosting/syscalls.c | 2 +-
> target/m68k/m68k-semi.c | 10 +++-------
> target/nios2/nios2-semi.c | 8 +++-----
> 7 files changed, 19 insertions(+), 27 deletions(-)
> -typedef void (*gdb_syscall_complete_cb)(CPUState *cpu,
> - target_ulong ret, target_ulong err);
> +typedef void (*gdb_syscall_complete_cb)(CPUState *cpu, uint64_t ret, int
> err);
Commit message says we're just changing the return value
handling, but the code also changes the type used for errno.
-- PMM
- [PATCH v3 14/49] include/exec: Move gdb open flags to gdbstub.h, (continued)
- [PATCH v3 14/49] include/exec: Move gdb open flags to gdbstub.h, Richard Henderson, 2022/05/20
- [PATCH v3 20/49] semihosting: Split out common_semi_has_synccache, Richard Henderson, 2022/05/20
- [PATCH v3 19/49] semihosting: Split common_semi_flen_buf per target, Richard Henderson, 2022/05/20
- [PATCH v3 27/49] semihosting: Bound length for semihost_sys_{read, write}, Richard Henderson, 2022/05/20
- [PATCH v3 33/49] semihosting: Split out semihost_sys_system, Richard Henderson, 2022/05/20
- [PATCH v3 36/49] gdbstub: Widen gdb_syscall_complete_cb return value, Richard Henderson, 2022/05/20
- Re: [PATCH v3 36/49] gdbstub: Widen gdb_syscall_complete_cb return value,
Peter Maydell <=
- [PATCH v3 03/49] semihosting: Improve condition for config.c and console.c, Richard Henderson, 2022/05/20
- [PATCH v3 23/49] semihosting: Split out semihost_sys_open, Richard Henderson, 2022/05/20
[PATCH v3 40/49] semihosting: Cleanup chardev init, Richard Henderson, 2022/05/20
[PATCH v3 42/49] semihosting: Add GuestFDConsole, Richard Henderson, 2022/05/20
[PATCH v3 43/49] semihosting: Create qemu_semihosting_guestfd_init, Richard Henderson, 2022/05/20
[PATCH v3 44/49] semihosting: Use console_in_gf for SYS_READC, Richard Henderson, 2022/05/20