From: Greg Kurz <groug@kaod.org>
To: Daniel Henrique Barboza <danielhb413@gmail.com>
Cc: Vaibhav Jain <vaibhav@linux.ibm.com>, <qemu-devel@nongnu.org>,
<qemu-ppc@nongnu.org>, <david@gibson.dropbear.id.au>,
<clg@kaod.org>, "Kowshik Jois B S" <kowsjois@linux.ibm.com>
Subject: Re: [PATCH] target/ppc: Fix build warnings when building with 'disable-tcg'
Date: Thu, 17 Nov 2022 11:50:05 +0100 [thread overview]
Message-ID: <20221117115005.4b23a318@bahia> (raw)
In-Reply-To: <9b92deef-e0ef-101d-8f7e-2b4634bde6de@gmail.com>
On Thu, 17 Nov 2022 07:11:51 -0300
Daniel Henrique Barboza <danielhb413@gmail.com> wrote:
> Queued in gitlab.com/danielhb/qemu/tree/ppc-next with the following tags:
>
You are planning a PR before 7.2-rc2, right ?
>
> Reported-by: Kowshik Jois B S <kowsjois@linux.ibm.com>
> Fixes: 61bd1d2942 ("target/ppc: Convert to tcg_ops restore_state_to_opc")
> Fixes: 670f1da374 ("target/ppc: Implement hashst and hashchk")
The guard macro also covers the following two, introduced by yet another commit.
HELPER_HASH(HASHSTP, env->spr[SPR_HASHPKEYR], true)
HELPER_HASH(HASHCHKP, env->spr[SPR_HASHPKEYR], false)
Fixes: 53ae2aeb9407 ("target/ppc: Implement hashstp and hashchkp")
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/377
Err... I don't see any relation with this issue.
Cedric ?
But this resolves the issue created by Vaibhav for 7.2 :
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1319
> Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
> Reviewed-by: Greg Kurz <groug@kaod.org>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Tested-by: Kowshik Jois B S <kowsjois@linux.vnet.ibm.com>
>
>
> Thanks,
>
>
> Daniel
>
> On 11/16/22 10:17, Vaibhav Jain wrote:
> > Kowshik reported that building qemu with GCC 12.2.1 for 'ppc64-softmmu'
> > target is failing due to following build warnings:
> >
> > <snip>
> > ../target/ppc/cpu_init.c:7018:13: error: 'ppc_restore_state_to_opc' defined but not used [-Werror=unused-function]
> > 7018 | static void ppc_restore_state_to_opc(CPUState *cs,
> > <snip>
> >
> > Fix this by wrapping these function definitions in 'ifdef CONFIG_TCG' so that
> > they are only defined if qemu is compiled with '--enable-tcg'
> >
> > Reported-by: Kowshik Jois B S <kowsjois@linux.ibm.com>
> > Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
> > ---
> > target/ppc/cpu_init.c | 2 ++
> > target/ppc/excp_helper.c | 2 ++
> > 2 files changed, 4 insertions(+)
> >
> > diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c
> > index 32e94153d1..cbf0081374 100644
> > --- a/target/ppc/cpu_init.c
> > +++ b/target/ppc/cpu_init.c
> > @@ -7015,6 +7015,7 @@ static vaddr ppc_cpu_get_pc(CPUState *cs)
> > return cpu->env.nip;
> > }
> >
> > +#ifdef CONFIG_TCG
> > static void ppc_restore_state_to_opc(CPUState *cs,
> > const TranslationBlock *tb,
> > const uint64_t *data)
> > @@ -7023,6 +7024,7 @@ static void ppc_restore_state_to_opc(CPUState *cs,
> >
> > cpu->env.nip = data[0];
> > }
> > +#endif /* CONFIG_TCG */
> >
> > static bool ppc_cpu_has_work(CPUState *cs)
> > {
> > diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
> > index a05a2ed595..94adcb766b 100644
> > --- a/target/ppc/excp_helper.c
> > +++ b/target/ppc/excp_helper.c
> > @@ -2842,6 +2842,7 @@ void helper_td(CPUPPCState *env, target_ulong arg1, target_ulong arg2,
> > #endif
> > #endif
> >
> > +#ifdef CONFIG_TCG
> > static uint32_t helper_SIMON_LIKE_32_64(uint32_t x, uint64_t key, uint32_t lane)
> > {
> > const uint16_t c = 0xfffc;
> > @@ -2924,6 +2925,7 @@ HELPER_HASH(HASHST, env->spr[SPR_HASHKEYR], true)
> > HELPER_HASH(HASHCHK, env->spr[SPR_HASHKEYR], false)
> > HELPER_HASH(HASHSTP, env->spr[SPR_HASHPKEYR], true)
> > HELPER_HASH(HASHCHKP, env->spr[SPR_HASHPKEYR], false)
> > +#endif /* CONFIG_TCG */
> >
> > #if !defined(CONFIG_USER_ONLY)
> >
next prev parent reply other threads:[~2022-11-17 10:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 13:17 [PATCH] target/ppc: Fix build warnings when building with 'disable-tcg' Vaibhav Jain
2022-11-16 15:20 ` Greg Kurz
2022-11-16 15:30 ` Philippe Mathieu-Daudé
2022-11-17 8:24 ` Thomas Huth
2022-11-17 2:13 ` Vaibhav Jain
2022-11-17 6:49 ` Cédric Le Goater
2022-11-16 15:27 ` [PATCH-for-7.2] " Philippe Mathieu-Daudé
2022-11-17 2:23 ` Vaibhav Jain
2022-11-17 7:34 ` [PATCH] " Kowshik Jois B S
2022-11-17 10:11 ` Daniel Henrique Barboza
2022-11-17 10:35 ` Vaibhav Jain
2022-11-17 14:23 ` Daniel Henrique Barboza
2022-11-17 10:50 ` Greg Kurz [this message]
2022-11-17 13:08 ` Cédric Le Goater
2022-11-17 14:27 ` Daniel Henrique Barboza
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221117115005.4b23a318@bahia \
--to=groug@kaod.org \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=kowsjois@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=vaibhav@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).