From: Dmitry Selyutin Date: Tue, 6 Sep 2022 13:25:23 +0000 (+0300) Subject: pysvp64asm: create database once X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20575120effbfebe9df8a55e8967a4a0283dfce8;p=openpower-isa.git pysvp64asm: create database once --- diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index 43c34721..3b7953f2 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -684,6 +684,9 @@ def to_number(field): return int(field) +db = Database(find_wiki_dir()) + + # decodes svp64 assembly listings and creates EXT001 svp64 prefixes class SVP64Asm: def __init__(self, lst, bigendian=False, macros=None): @@ -917,7 +920,6 @@ class SVP64Asm: log("extras", extras) # rright. now we have all the info. start creating SVP64 instruction. - db = Database(find_wiki_dir()) svp64_insn = SVP64Instruction.pair(prefix=0, suffix=0) svp64_prefix = svp64_insn.prefix svp64_rm = svp64_insn.prefix.rm