From f5b4449a77dd6e48f24e5ad64e16ee3b6b603d0d Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 17 Aug 2022 13:29:07 +0300 Subject: [PATCH] pysvp64dis: introduce global cached insn database --- src/openpower/sv/trans/pysvp64dis.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.30.2