ppc64: Avoid pt_regs struct definition
authorKhem Raj <raj.khem@gmail.com>
Sun, 20 Mar 2022 22:35:27 +0000 (23:35 +0100)
committerCédric Le Goater <clg@kaod.org>
Sun, 20 Mar 2022 22:35:27 +0000 (23:35 +0100)
commit9d1401b79463e74adbfac69d836789d4e103fb61
tree6d96bb9ccf2f465408b75fba15399d9aa28b8882
parent2058fdbe81e2985c226a026851dd26b146d3395c
ppc64: Avoid pt_regs struct definition

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.khem@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220315015740.847370-1-raj.khem@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
linux-user/include/host/ppc/host-signal.h [deleted file]
linux-user/include/host/ppc64/host-signal.h