mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 12:16:49 +00:00
decodetree: Prefix extract function names with decode_function
This makes it easier to name Formats within multiple decode files. Backports commit 71ecf79bf40db20237a3cfc01cc407cc4cad8817 from qemu
This commit is contained in:
parent
1f57e9bedc
commit
fcb49bb6f6
|
@ -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(), '(',
|
||||
|
|
Loading…
Reference in a new issue