-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[Driver] Add options to control workaround for Cortex-A53 Erratum 843419 #143915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,9 @@ void fuchsia::Linker::ConstructJob(Compilation &C, const JobAction &JA, | |
| CmdArgs.push_back("--execute-only"); | ||
|
|
||
| std::string CPU = getCPUName(D, Args, Triple); | ||
| if (CPU.empty() || CPU == "generic" || CPU == "cortex-a53") | ||
| if (Args.hasFlag(options::OPT_mfix_cortex_a53_843419, | ||
| options::OPT_mno_fix_cortex_a53_843419, true) && | ||
|
Comment on lines
+94
to
+95
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was wondering if the option should always be honoured if it was present (with any CPU). If it isn't present then we enable it with a generic or empty or a53 CPU. But that doesn't look like how the GCC option is specified in the docs. It should ideally be automatically disabled if the archecture is armv8.1-a or later, as that code cannot run on cortex-a53. That is probably a separate issue though, and would equally apply to mfix_cortex_a53_835769 too.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The GCC docs say that these options are "ignored if an architecture or cpu is specified on the command line which does not need the workaround". So I think what we have in this PR mostly matches that description. I can submit a new PR to add a condition to check whether the architecture is armv8.1-a or later. |
||
| (CPU.empty() || CPU == "generic" || CPU == "cortex-a53")) | ||
| CmdArgs.push_back("--fix-cortex-a53-843419"); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.