From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH] ppc: Some FPU helper functions must be inline
Date: Fri, 29 Jul 2016 14:37:07 +1000 [thread overview]
Message-ID: <1469767027.5978.242.camel@kernel.crashing.org> (raw)
In-Reply-To: <20160729024416.GF2588@voom.fritz.box>
On Fri, 2016-07-29 at 12:44 +1000, David Gibson wrote:
> On Fri, Jul 29, 2016 at 08:33:45AM +1000, Benjamin Herrenschmidt
> wrote:
> >
> > float_invalid_op_excp() and float_check_status() must be inline
> > due to their use of GETPC().
> >
> > Use __attribute__((__always_inline__)) to enforce it
> >
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>
> Do you want me to fold this into the patch it fixes?
Feel free, sure
Cheers,
Ben.
> >
> > ---
> > target-ppc/fpu_helper.c | 7 ++++---
> > 1 file changed, 4 insertions(+), 3 deletions(-)
> >
> > diff --git a/target-ppc/fpu_helper.c b/target-ppc/fpu_helper.c
> > index 65dc170..b0760f0 100644
> > --- a/target-ppc/fpu_helper.c
> > +++ b/target-ppc/fpu_helper.c
> > @@ -117,8 +117,8 @@ void helper_compute_fprf(CPUPPCState *env,
> > uint64_t arg)
> > }
> >
> > /* Floating-point invalid operations exception */
> > -static inline uint64_t float_invalid_op_excp(CPUPPCState *env, int
> > op,
> > - int set_fpcc)
> > +static inline __attribute__((__always_inline__))
> > +uint64_t float_invalid_op_excp(CPUPPCState *env, int op, int
> > set_fpcc)
> > {
> > CPUState *cs = CPU(ppc_env_get_cpu(env));
> > uint64_t ret = 0;
> > @@ -519,7 +519,8 @@ static void do_float_check_status(CPUPPCState
> > *env, uintptr_t raddr)
> > }
> > }
> >
> > -static inline void float_check_status(CPUPPCState *env)
> > +static inline __attribute__((__always_inline__))
> > +void float_check_status(CPUPPCState *env)
> > {
> > /* GETPC() works here because this is inline */
> > do_float_check_status(env, GETPC());
> >
>
next prev parent reply other threads:[~2016-07-29 4:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 22:33 [Qemu-devel] [PATCH] ppc: Some FPU helper functions must be inline Benjamin Herrenschmidt
2016-07-29 2:44 ` David Gibson
2016-07-29 4:37 ` Benjamin Herrenschmidt [this message]
2016-07-29 5:32 ` David Gibson
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=1469767027.5978.242.camel@kernel.crashing.org \
--to=benh@kernel.crashing.org \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.