qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] ppc: Include asm/ptrace.h for pt_regs struct definition


From: Peter Maydell
Subject: Re: [PATCH] ppc: Include asm/ptrace.h for pt_regs struct definition
Date: Mon, 14 Mar 2022 17:05:03 +0000

On Mon, 14 Mar 2022 at 17:02, Khem Raj <raj.khem@gmail.com> wrote:
>
> 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>
> ---
>  linux-user/include/host/ppc/host-signal.h | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/linux-user/include/host/ppc/host-signal.h 
> b/linux-user/include/host/ppc/host-signal.h
> index b80384d135..43ee2eee3b 100644
> --- a/linux-user/include/host/ppc/host-signal.h
> +++ b/linux-user/include/host/ppc/host-signal.h
> @@ -11,6 +11,10 @@
>  #ifndef PPC_HOST_SIGNAL_H
>  #define PPC_HOST_SIGNAL_H
>
> +#if defined(__powerpc__)

Why is this #if defined() needed ?

> +#include <asm/ptrace.h>
> +#endif

What host distro are you building with? We do test ppc64be at least
in our CI, and that builds OK.

thanks
-- PMM



reply via email to

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