summaryrefslogtreecommitdiff
path: root/tools/objtool/arch/powerpc/special.c
diff options
context:
space:
mode:
authorAlexandre Chartre <alexandre.chartre@oracle.com>2025-11-21 10:53:36 +0100
committerPeter Zijlstra <peterz@infradead.org>2025-11-24 20:39:47 +0100
commit8308fd001927f5bdc37a9c9f9c413baec3fb7bbe (patch)
tree39c7a737cddf33e13bd02f61258088e9d3238722 /tools/objtool/arch/powerpc/special.c
parentbe5ee60ac554c6189cda963e886c4b97d2cb978c (diff)
objtool: Add Function to get the name of a CPU feature
Add a function to get the name of a CPU feature. The function is architecture dependent and currently only implemented for x86. The feature names are automatically generated from the cpufeatures.h include file. Signed-off-by: Alexandre Chartre <alexandre.chartre@oracle.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Link: https://patch.msgid.link/20251121095340.464045-27-alexandre.chartre@oracle.com
Diffstat (limited to 'tools/objtool/arch/powerpc/special.c')
-rw-r--r--tools/objtool/arch/powerpc/special.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objtool/arch/powerpc/special.c b/tools/objtool/arch/powerpc/special.c
index 51610689abf7..8f9bf61ca089 100644
--- a/tools/objtool/arch/powerpc/special.c
+++ b/tools/objtool/arch/powerpc/special.c
@@ -18,3 +18,8 @@ struct reloc *arch_find_switch_table(struct objtool_file *file,
{
exit(-1);
}
+
+const char *arch_cpu_feature_name(int feature_number)
+{
+ return NULL;
+}