Laurent,
On 3/15/22 11:31, Peter Maydell wrote:
On Tue, 15 Mar 2022 at 02:14, Richard Henderson
<richard.hender...@linaro.org> wrote:
On 3/14/22 18:57, Khem Raj wrote:
Remove pt_regs indirection and instead reference gp_regs directly, this
makes it portable across musl/glibc
Use PT_* constants defined in asm/ptrace.h
Move the file to ppc64 subdir and leave ppc empty
Fixes
../qemu-6.2.0/linux-user/host/ppc64/../ppc/host-signal.h:16:32: error:
incomplete definition of type 'struct pt_regs'
return uc->uc_mcontext.regs->nip;
~~~~~~~~~~~~~~~~~~~~^
Signed-off-by: Khem Raj<raj.k...@gmail.com>
Cc: Peter Maydell<peter.mayd...@linaro.org>
Cc: Philippe Mathieu-Daudé<f4...@amsat.org>
Cc: Richard Henderson<richard.hender...@linaro.org>
---
v2: Drop ifdef __powerpc__
v3: Access go_regs directly and move the file to ppc64 dir
v4: Use PT_* constants defined in asm/ptrace.h
linux-user/include/host/ppc/host-signal.h | 38 -------------------
linux-user/include/host/ppc64/host-signal.h | 42 ++++++++++++++++++++-
2 files changed, 41 insertions(+), 39 deletions(-)
delete mode 100644 linux-user/include/host/ppc/host-signal.h
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
I did a compile-check and confirmed that this builds OK
on glibc headers too.
I can queue this patch for 7.0. I have a few already.
C.