From: <ltaylorsimpson@gmail.com>
To: "'Matheus Tavares Bernardino'" <quic_mathbern@quicinc.com>
Cc: <bcain@quicinc.com>, <qemu-devel@nongnu.org>,
<quic_mliebel@quicinc.com>, <richard.henderson@linaro.org>
Subject: RE: [PATCH v2] Hexagon: move GETPC() calls to top level helpers
Date: Mon, 10 Jul 2023 18:40:51 -0600 [thread overview]
Message-ID: <026701d9b390$585f6690$091e33b0$@gmail.com> (raw)
In-Reply-To: <20230706112234.3267878-1-quic_mathbern@quicinc.com>
> -----Original Message-----
> From: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
> Sent: Thursday, July 6, 2023 5:23 AM
> To: ltaylorsimpson@gmail.com
> Cc: bcain@quicinc.com; qemu-devel@nongnu.org;
> quic_mathbern@quicinc.com; quic_mliebel@quicinc.com;
> richard.henderson@linaro.org
> Subject: Re: [PATCH v2] Hexagon: move GETPC() calls to top level helpers
>
>
> > ltaylorsimpson@gmail.com wrote:
> >
> > > -----Original Message-----
> > > From: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
> > > Sent: Wednesday, July 5, 2023 12:35 PM
> > > To: qemu-devel@nongnu.org
> > > Cc: quic_mathbern@quicinc.com; bcain@quicinc.com;
> > > ltaylorsimpson@gmail.com; quic_mliebel@quicinc.com;
> > > richard.henderson@linaro.org
> > > Subject: [PATCH v2] Hexagon: move GETPC() calls to top level helpers
> > >
> > > a/target/hexagon/op_helper.h b/target/hexagon/op_helper.h index
> > > 8f3764d15e..7744e819ef 100644
> > > --- a/target/hexagon/op_helper.h
> > > +++ b/target/hexagon/op_helper.h
> > > +void check_noshuf(CPUHexagonState *env, bool pkt_has_store_s1,
> > > + uint32_t slot, target_ulong vaddr, int size,
> > > +uintptr_t ra);
> >
> > Are you sure this needs to be non-static?
>
> Yeah, since we remove the mem_load*() functions, check_noshuf() must
> now be visible to the other compilation units that include macros.h, as we
will
> expand the fLOAD() macro to call it.
Since the generated helper functions are included at the bottom of
op_helper.c
#include "helper_funcs_generated.c.inc"
it can be static.
It needs to be guarded with
#ifndef CONFIG_HEXAGON_IDEF_PARSER
because it is not used when by any of the idef-parser functions.
Thanks,
Taylor
prev parent reply other threads:[~2023-07-11 0:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-05 18:34 [PATCH v2] Hexagon: move GETPC() calls to top level helpers Matheus Tavares Bernardino
2023-07-05 22:17 ` ltaylorsimpson
2023-07-06 6:44 ` Richard Henderson
2023-07-06 11:22 ` Matheus Tavares Bernardino
2023-07-11 0:40 ` ltaylorsimpson [this message]
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='026701d9b390$585f6690$091e33b0$@gmail.com' \
--to=ltaylorsimpson@gmail.com \
--cc=bcain@quicinc.com \
--cc=qemu-devel@nongnu.org \
--cc=quic_mathbern@quicinc.com \
--cc=quic_mliebel@quicinc.com \
--cc=richard.henderson@linaro.org \
/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).