common/cnxk: update inline asm prefix
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Tue, 4 May 2021 00:26:52 +0000 (05:56 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 4 May 2021 02:53:03 +0000 (04:53 +0200)
Update inline asm prefix to prevent overriding cpu type, instead express
the additional extensions required.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/common/cnxk/roc_platform.h

index 29ab712..7864fa4 100644 (file)
 #include "roc_bits.h"
 
 #if defined(__ARM_FEATURE_SVE)
-#define PLT_CPU_FEATURE_PREAMBLE ".cpu generic+crc+lse+sve\n"
+#define PLT_CPU_FEATURE_PREAMBLE                                               \
+       ".arch_extension crc\n"                                                \
+       ".arch_extension lse\n"                                                \
+       ".arch_extension sve\n"
 #else
-#define PLT_CPU_FEATURE_PREAMBLE ".cpu generic+crc+lse\n"
+#define PLT_CPU_FEATURE_PREAMBLE                                               \
+       ".arch_extension crc\n"                                                \
+       ".arch_extension lse\n"
 #endif
 
 #define PLT_ASSERT              RTE_ASSERT