From: Dmitry Selyutin Date: Wed, 17 Aug 2022 10:29:07 +0000 (+0300) Subject: pysvp64dis: introduce global cached insn database X-Git-Tag: sv_maxu_works-initial~53 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5b4449a77dd6e48f24e5ad64e16ee3b6b603d0d;p=openpower-isa.git pysvp64dis: introduce global cached insn database --- diff --git a/src/openpower/sv/trans/pysvp64dis.py b/src/openpower/sv/trans/pysvp64dis.py index 1c7016b7..2e63b7d2 100644 --- a/src/openpower/sv/trans/pysvp64dis.py +++ b/src/openpower/sv/trans/pysvp64dis.py @@ -3,6 +3,8 @@ import enum as _enum import functools as _functools import sys as _sys +from openpower.decoder.power_enums import find_wiki_dir as _find_wiki_dir +from openpower.decoder.power_insn import Database as _Database from openpower.decoder.selectable_int import SelectableInt as _SelectableInt from openpower.decoder.isa.caller import SVP64PrefixFields as _SVP64PrefixFields from openpower.decoder.isa.caller import SVP64RMFields as _SVP64RMFields @@ -21,6 +23,9 @@ class ByteOrder(_enum.Enum): return self.name.lower() +DATABASE = _Database(_find_wiki_dir()) + + class Instruction(_SelectableInt): def __init__(self, value, byteorder=ByteOrder.LITTLE): if isinstance(value, Instruction):