Re: [PATCH v4 02/12] {linux,bsd}-user: Introduce get_task_state()

2024-02-19 Thread Richard Henderson
On 2/19/24 04:15, Ilya Leoshkevich wrote: A CPU's TaskState is stored in the CPUState's void *opaque field, accessing which is somewhat awkward due to having to use a cast. Introduce a wrapper and use it everywhere. Suggested-by: Alex Bennée Signed-off-by: Ilya Leoshkevich --- bsd-user/bsd-fil

Re: [PATCH v4 02/12] {linux,bsd}-user: Introduce get_task_state()

2024-02-19 Thread Warner Losh
On Mon, Feb 19, 2024 at 7:21 AM Ilya Leoshkevich wrote: > A CPU's TaskState is stored in the CPUState's void *opaque field, > accessing which is somewhat awkward due to having to use a cast. > Introduce a wrapper and use it everywhere. > > Suggested-by: Alex Bennée > Signed-off-by: Ilya Leoshkev

[PATCH v4 02/12] {linux,bsd}-user: Introduce get_task_state()

2024-02-19 Thread Ilya Leoshkevich
A CPU's TaskState is stored in the CPUState's void *opaque field, accessing which is somewhat awkward due to having to use a cast. Introduce a wrapper and use it everywhere. Suggested-by: Alex Bennée Signed-off-by: Ilya Leoshkevich --- bsd-user/bsd-file.h | 2 +- bsd-user/qemu.h