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>
Thanks for your patience.
r~