public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] aarch64: Add sysreg features to +d128 dependencies
@ 2024-01-15 11:16 Andrew Carlotti
  2024-01-15 11:25 ` Nick Clifton
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Carlotti @ 2024-01-15 11:16 UTC (permalink / raw)
  To: binutils

We should revisit sysreg feature enablement and dependencies in future, but
this change should help until then.

OK for master?


diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 77467e20ba32ca40e4aaf71c427aab76ceb3b273..b77bb8b77c15317bedfcd5899f3db5457ddaf34c 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -10265,6 +10265,10 @@ struct aarch64_option_cpu_value_table
   const aarch64_feature_set require; /* Feature dependencies.  */
 };
 
+/* There are currently many feature bits with no corresponding flag for features implied by FEAT_D128.  We should combine or remove most of these in the future, but for now just make +d128 enable these dependencies as well.  */
+#define D128_FEATURE_DEPS AARCH64_FEATURES (8, LSE128, SCTLR2, FGT2, ATS1A, \
+					    AIE, S1PIE, S2PIE, TCR2)
+
 static const struct aarch64_option_cpu_value_table aarch64_features[] = {
   {"crc",		AARCH64_FEATURE (CRC), AARCH64_NO_FEATURES},
   {"crypto",		AARCH64_FEATURES (2, AES, SHA2),
@@ -10336,8 +10340,7 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
   {"the",		AARCH64_FEATURE (THE), AARCH64_NO_FEATURES},
   {"rasv2",		AARCH64_FEATURE (RASv2), AARCH64_FEATURE (RAS)},
   {"ite",		AARCH64_FEATURE (ITE), AARCH64_NO_FEATURES},
-  {"d128",		AARCH64_FEATURE (D128),
-			AARCH64_FEATURE (LSE128)},
+  {"d128",		AARCH64_FEATURE (D128), D128_FEATURE_DEPS},
   {NULL,		AARCH64_NO_FEATURES, AARCH64_NO_FEATURES},
 };
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] aarch64: Add sysreg features to +d128 dependencies
  2024-01-15 11:16 [PATCH] aarch64: Add sysreg features to +d128 dependencies Andrew Carlotti
@ 2024-01-15 11:25 ` Nick Clifton
  2024-05-15 11:38   ` Andrew Carlotti
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Clifton @ 2024-01-15 11:25 UTC (permalink / raw)
  To: Andrew Carlotti, binutils

Hi Andrew,

> We should revisit sysreg feature enablement and dependencies in future, but
> this change should help until then.
> 
> OK for master ?

Approved - please apply.

Cheers
   Nick


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] aarch64: Add sysreg features to +d128 dependencies
  2024-01-15 11:25 ` Nick Clifton
@ 2024-05-15 11:38   ` Andrew Carlotti
  2024-05-15 22:08     ` Fangrui Song
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Carlotti @ 2024-05-15 11:38 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

On Mon, Jan 15, 2024 at 11:25:36AM +0000, Nick Clifton wrote:
> Hi Andrew,
> 
> > We should revisit sysreg feature enablement and dependencies in future, but
> > this change should help until then.
> > 
> > OK for master ?
> 
> Approved - please apply.
> 
> Cheers
>   Nick

I've just committed this patch - I think I forgot about it at the time because
I didn't initially have commit access, and received a large amount of
notification spam at the same time as the approval email. 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] aarch64: Add sysreg features to +d128 dependencies
  2024-05-15 11:38   ` Andrew Carlotti
@ 2024-05-15 22:08     ` Fangrui Song
  0 siblings, 0 replies; 4+ messages in thread
From: Fangrui Song @ 2024-05-15 22:08 UTC (permalink / raw)
  To: Andrew Carlotti; +Cc: Nick Clifton, binutils

On Wed, May 15, 2024 at 4:38 AM Andrew Carlotti <andrew.carlotti@arm.com> wrote:
>
> On Mon, Jan 15, 2024 at 11:25:36AM +0000, Nick Clifton wrote:
> > Hi Andrew,
> >
> > > We should revisit sysreg feature enablement and dependencies in future, but
> > > this change should help until then.
> > >
> > > OK for master ?
> >
> > Approved - please apply.
> >
> > Cheers
> >   Nick
>
> I've just committed this patch - I think I forgot about it at the time because
> I didn't initially have commit access, and received a large amount of
> notification spam at the same time as the approval email.

Next time you probably want to remove "OK for master?" from the commit
messages :)

https://sourceware.org/cgit/binutils-gdb/commit/?id=53071aac476c2d497b313b1ee09a462912cb1d87
https://sourceware.org/cgit/binutils-gdb/commit/?id=16b4196349fa571a955b7f23a425252a5e0c7443
https://sourceware.org/cgit/binutils-gdb/commit/?id=9dd903dfbf76d91be97e80499b574ef2f8317620

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-15 22:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 11:16 [PATCH] aarch64: Add sysreg features to +d128 dependencies Andrew Carlotti
2024-01-15 11:25 ` Nick Clifton
2024-05-15 11:38   ` Andrew Carlotti
2024-05-15 22:08     ` Fangrui Song

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).