qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4] ppc64: Avoid pt_regs struct definition


From: Richard Henderson
Subject: Re: [PATCH v4] ppc64: Avoid pt_regs struct definition
Date: Mon, 14 Mar 2022 19:14:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

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.khem@gmail.com>
Cc: Peter Maydell<peter.maydell@linaro.org>
Cc: Philippe Mathieu-Daudé<f4bug@amsat.org>
Cc: Richard Henderson<richard.henderson@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.henderson@linaro.org>

Thanks for your patience.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]