mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 21:03:54 -06:00
decodetree: Prefix extract function names with decode_function
This makes it easier to name Formats within multiple decode files. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
263ac638a7
commit
71ecf79bf4
1 changed files with 2 additions and 1 deletions
|
@ -312,7 +312,8 @@ class Format(General):
|
||||||
"""Class representing an instruction format"""
|
"""Class representing an instruction format"""
|
||||||
|
|
||||||
def extract_name(self):
|
def extract_name(self):
|
||||||
return 'extract_' + self.name
|
global decode_function
|
||||||
|
return decode_function + '_extract_' + self.name
|
||||||
|
|
||||||
def output_extract(self):
|
def output_extract(self):
|
||||||
output('static void ', self.extract_name(), '(',
|
output('static void ', self.extract_name(), '(',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue