From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Michael Matz <matz@suse.de>
Cc: Alexander Monakov <amonakov@ispras.ru>,
Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>,
Li Bin <huawei.libin@huawei.com>,
GCC Patches <gcc-patches@gcc.gnu.org>,
Marcus Shawcroft <marcus.shawcroft@arm.com>,
richard.earnshaw@arm.com, andrew.wafaa@arm.com,
szabolcs.nagy@arm.com, masami.hiramatsu.pt@hitachi.com,
geoff@infradead.org, guohanjun@huawei.com, felix.yang@huawei.com,
jiangjiji@huawei.com
Subject: Re: [PATCH] [AArch64] support -mfentry feature for arm64
Date: Tue, 19 Apr 2016 06:26:00 -0000 [thread overview]
Message-ID: <20160419062845.GC13600@linaro.org> (raw)
In-Reply-To: <alpine.LSU.2.20.1604181408270.20277@wotan.suse.de>
On Mon, Apr 18, 2016 at 02:12:09PM +0200, Michael Matz wrote:
> Hi,
>
> On Sun, 17 Apr 2016, Alexander Monakov wrote:
>
> > I've noticed an issue in my (and probably Michael's) solution: if
> > there's a thread that made it past the first nop, but is still executing
> > the nop pad, it's unsafe to replace the nops.
Yeah, this issue also trapped me before :)
> To solve that, it
> > suffices to have a forward branch in place of the first nop to begin
> > with (i.e. have the compiler emit it).
>
> True. I wonder if the generic solution in GCC should do that always or if
> the patch infrastructure should do that to enable more freedom like doing
> this:
>
> > But if Szabolcs' two-instruction
> > sequence in the adjacent subthread is sufficient, this is moot.
>
> . It can also be solved by having just one NOP after the function label,
> and a number of them before, then no thread can be in the nop pad. That
> seems to indicate that GCC should not try to be too clever and simply
> leave the specified number of nops before and after the function label,
> leaving safety measures to the patching infrastructure.
I don't get this idea very well.
How can the instructions *before* a function label be executed
after branching into this function?
Thanks,
-Takahiro AKASHI
>
> Ciao,
> Michael.
--
Thanks,
-Takahiro AKASHI
next prev parent reply other threads:[~2016-04-19 6:26 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-14 8:13 Li Bin
2016-03-14 8:12 ` Li Bin
2016-04-14 13:08 ` Maxim Kuvyrkov
2016-04-14 13:15 ` Andrew Pinski
2016-04-14 15:58 ` Szabolcs Nagy
2016-04-18 13:26 ` Alexander Monakov
2016-04-18 13:34 ` Ramana Radhakrishnan
2016-04-18 13:44 ` Alexander Monakov
2016-04-18 13:57 ` Ramana Radhakrishnan
2016-04-18 14:03 ` Alexander Monakov
2016-04-18 14:31 ` Szabolcs Nagy
2016-04-18 15:54 ` Alexander Monakov
2016-04-19 6:46 ` AKASHI Takahiro
2016-04-19 6:13 ` AKASHI Takahiro
2016-04-19 6:44 ` Alexander Monakov
2016-04-20 0:33 ` AKASHI Takahiro
2016-04-20 10:02 ` Szabolcs Nagy
2016-04-15 15:40 ` Michael Matz
2016-04-15 17:29 ` Alexander Monakov
2016-04-17 15:06 ` Alexander Monakov
2016-04-18 12:12 ` Michael Matz
2016-04-19 6:26 ` AKASHI Takahiro [this message]
2016-04-19 6:39 ` Alexander Monakov
2016-04-20 1:23 ` AKASHI Takahiro
2016-04-20 16:45 ` Szabolcs Nagy
2016-04-19 16:03 ` Torsten Duwe
2016-04-18 14:32 ` Andrew Haley
2016-04-18 17:13 ` Michael Matz
2016-04-18 17:17 ` Andrew Haley
2016-04-18 17:34 ` Michael Matz
2016-04-19 8:00 ` Andrew Haley
2016-04-19 13:19 ` Michael Matz
2016-04-19 13:25 ` Andrew Haley
2016-04-19 14:38 ` Pedro Alves
2016-04-19 15:02 ` Andrew Haley
2016-04-19 6:08 ` AKASHI Takahiro
-- strict thread matches above, loose matches on Subject: below --
2015-10-22 13:24 Li Bin
2015-10-22 13:53 ` Marcus Shawcroft
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=20160419062845.GC13600@linaro.org \
--to=takahiro.akashi@linaro.org \
--cc=amonakov@ispras.ru \
--cc=andrew.wafaa@arm.com \
--cc=felix.yang@huawei.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=geoff@infradead.org \
--cc=guohanjun@huawei.com \
--cc=huawei.libin@huawei.com \
--cc=jiangjiji@huawei.com \
--cc=marcus.shawcroft@arm.com \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=matz@suse.de \
--cc=maxim.kuvyrkov@linaro.org \
--cc=richard.earnshaw@arm.com \
--cc=szabolcs.nagy@arm.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 read-only IMAP folder(s) and NNTP newsgroup(s).