Re: [PATCH v8 25/30] powerpc: Test prefixed instructions in feature fixups
From: Jordan Niethe <hidden>
Date: 2020-05-15 07:58:55
From: Jordan Niethe <hidden>
Date: 2020-05-15 07:58:55
Hey mpe, could you add this thanks.
diff --git a/arch/powerpc/lib/feature-fixups.cb/arch/powerpc/lib/feature-fixups.c
--- a/arch/powerpc/lib/feature-fixups.c
+++ b/arch/powerpc/lib/feature-fixups.c@@ -689,7 +689,7 @@ static void test_lwsync_macros(void) } } -#ifdef __powerpc64__ +#ifdef CONFIG_PPC64 static void __init test_prefix_patching(void) { extern unsigned int ftr_fixup_prefix1[];
@@ -755,7 +755,7 @@ static void __init test_prefix_word_alt_patching(void) patch_feature_section(0, &fixup); check(memcmp(ftr_fixup_prefix3, ftr_fixup_prefix3_orig, size) != 0); } -#endif /* __powerpc64__ */ +#endif /* CONFIG_PPC64 */ static int __init test_feature_fixups(void) {
@@ -771,7 +771,7 @@ static int __init test_feature_fixups(void) test_cpu_macros(); test_fw_macros(); test_lwsync_macros(); -#ifdef __powerpc64__ +#ifdef CONFIG_PPC64 test_prefix_patching(); test_prefix_alt_patching(); test_prefix_word_alt_patching(); --