Re: [PATCH 2/5] linux-user/i386: Emulate orig_ax

2024-09-08 Thread Richard Henderson
On 8/2/24 02:59, Ilya Leoshkevich wrote: diff --git a/linux-user/qemu.h b/linux-user/qemu.h index a2961f503f4..85ba5a53869 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -159,6 +159,11 @@ struct TaskState { /* Start time of task after system boot in clock ticks */ uint6

[PATCH 2/5] linux-user/i386: Emulate orig_ax

2024-08-02 Thread Ilya Leoshkevich
The kernel uses orig_rax/orig_eax to store the syscall number before a syscall. One can see this value in core dumps and ptrace. Signed-off-by: Ilya Leoshkevich --- linux-user/elfload.c | 4 ++-- linux-user/i386/cpu_loop.c | 3 +++ linux-user/qemu.h | 5 + 3 files changed, 10