From fcb49bb6f6dabeeeaf348c093941fbfc6596416e Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 13 Mar 2019 11:20:24 -0400 Subject: [PATCH] decodetree: Prefix extract function names with decode_function This makes it easier to name Formats within multiple decode files. Backports commit 71ecf79bf40db20237a3cfc01cc407cc4cad8817 from qemu --- qemu/scripts/decodetree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu/scripts/decodetree.py b/qemu/scripts/decodetree.py index 4a63ba3e..0006a979 100644 --- a/qemu/scripts/decodetree.py +++ b/qemu/scripts/decodetree.py @@ -446,7 +446,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(), '(',