decodetree: Prefix extract function names with decode_function
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Feb 2019 22:45:50 +0000 (14:45 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 12 Mar 2019 16:46:58 +0000 (09:46 -0700)
This makes it easier to name Formats within multiple decode files.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
scripts/decodetree.py

index f6f58e2fec1a2dc12b2a812b66f177923068bc38..ac158b42d077b9f836d8df646f28f6821fdfa981 100755 (executable)
@@ -312,7 +312,8 @@ class Format(General):
     """Class representing an instruction format"""
 
     def extract_name(self):
-        return 'extract_' + self.name
+        global decode_function
+        return decode_function + '_extract_' + self.name
 
     def output_extract(self):
         output('static void ', self.extract_name(), '(',