From 20575120effbfebe9df8a55e8967a4a0283dfce8 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 6 Sep 2022 16:25:23 +0300 Subject: [PATCH] pysvp64asm: create database once --- src/openpower/sv/trans/svp64.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2