This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82150] Produces a branch prefetch which causes a hang
- From: "ramana at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Sep 2017 09:28:21 +0000
- Subject: [Bug target/82150] Produces a branch prefetch which causes a hang
- Auto-submitted: auto-generated
- References: <bug-82150-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82150
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |ramana at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #6 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
To answer the question open, no options have been added to "avoid" this
behaviour.
The code generated by the compiler is as per the architecture specification,
there's nothing wrong here and thus this is not a valid report. In order to
prevent such speculation by the ARM11 MPCore, one needs to set the XN bit as
Matt referred to above.
Look also at the execute-never bit in the ARM-ARM - ARMv7-AR Section B3.7.2
(Issue C - DDI0406C, page B3-1351) where it covers what happens with
Speculation and no-execute, and thus given that's in the architecture
implementations have to follow that.
regards
Ramana