From 59ccad3854bc3d73d32c7231cfb7a00841ea7034 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 3 Jun 2023 17:56:54 +0300 Subject: [PATCH] insndb: revert recent renaming --- setup.py | 2 +- src/openpower/decoder/isa/caller.py | 2 +- src/openpower/decoder/power_table.py | 2 +- src/openpower/insndb/asm.py | 8 ++++---- src/openpower/insndb/db.py | 2 +- src/openpower/insndb/{disasm.py => dis.py} | 2 +- src/openpower/insndb/{dbtypes.py => types.py} | 0 src/openpower/sv/sv_binutils.py | 4 ++-- src/openpower/sv/sv_binutils_fptrans.py | 2 +- src/openpower/sv/trans/test_pysvp64dis.py | 4 ++-- src/openpower/sv/trans/test_pysvp64dis_branch.py | 4 ++-- 11 files changed, 16 insertions(+), 16 deletions(-) rename src/openpower/insndb/{disasm.py => dis.py} (98%) rename src/openpower/insndb/{dbtypes.py => types.py} (100%) diff --git a/setup.py b/setup.py index 37d63768..a6b32207 100644 --- a/setup.py +++ b/setup.py @@ -84,7 +84,7 @@ setup( 'pypowersim=openpower.decoder.isa.pypowersim:run_simulation', 'pysvp64asm=openpower.insndb.asm:main', 'pysvp64db=openpower.insndb.db:main', - 'pysvp64dis=openpower.insndb.disasm:main', + 'pysvp64dis=openpower.insndb.dis:main', ], }, ) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 3934d2cd..29691b92 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -35,7 +35,7 @@ from openpower.decoder.power_enums import (FPTRANS_INSNS, CRInSel, CROutSel, SVP64RMMode, SVPType, XER_bits, insns, spr_byname, spr_dict, BFP_FLAG_NAMES) -from openpower.insndb.dbtypes import SVP64Instruction +from openpower.insndb.types import SVP64Instruction from openpower.decoder.power_svp64 import SVP64RM, decode_extra from openpower.decoder.selectable_int import (FieldSelectableInt, SelectableInt, selectconcat, diff --git a/src/openpower/decoder/power_table.py b/src/openpower/decoder/power_table.py index 2af39c8d..7b83ba50 100644 --- a/src/openpower/decoder/power_table.py +++ b/src/openpower/decoder/power_table.py @@ -1,6 +1,6 @@ import collections from openpower.decoder.power_enums import find_wiki_dir -from openpower.insndb.dbtypes import Database +from openpower.insndb.types import Database from openpower.util import log sections = {} diff --git a/src/openpower/insndb/asm.py b/src/openpower/insndb/asm.py index 534d9a0c..8ed34b8d 100644 --- a/src/openpower/insndb/asm.py +++ b/src/openpower/insndb/asm.py @@ -28,10 +28,10 @@ from openpower.decoder.pseudo.pagereader import ISA from openpower.decoder.power_svp64 import SVP64RM, get_regtype, decode_extra from openpower.decoder.selectable_int import SelectableInt from openpower.consts import SVP64MODE -from openpower.insndb.dbtypes import SVP64Instruction -from openpower.insndb.dbtypes import Database -from openpower.insndb.dbtypes import Style -from openpower.insndb.dbtypes import WordInstruction +from openpower.insndb.types import SVP64Instruction +from openpower.insndb.types import Database +from openpower.insndb.types import Style +from openpower.insndb.types import WordInstruction from openpower.decoder.power_enums import find_wiki_dir # for debug logging diff --git a/src/openpower/insndb/db.py b/src/openpower/insndb/db.py index b16e6cae..753ab626 100644 --- a/src/openpower/insndb/db.py +++ b/src/openpower/insndb/db.py @@ -5,7 +5,7 @@ import sys from openpower.decoder.power_enums import ( find_wiki_dir, ) -from openpower.insndb.dbtypes import ( +from openpower.insndb.types import ( Database, Visitor, ) diff --git a/src/openpower/insndb/disasm.py b/src/openpower/insndb/dis.py similarity index 98% rename from src/openpower/insndb/disasm.py rename to src/openpower/insndb/dis.py index adaa5a63..720963ba 100644 --- a/src/openpower/insndb/disasm.py +++ b/src/openpower/insndb/dis.py @@ -6,7 +6,7 @@ import os from openpower.decoder.power_enums import ( find_wiki_dir, ) -from openpower.insndb.dbtypes import ( +from openpower.insndb.types import ( Style, Database, WordInstruction, diff --git a/src/openpower/insndb/dbtypes.py b/src/openpower/insndb/types.py similarity index 100% rename from src/openpower/insndb/dbtypes.py rename to src/openpower/insndb/types.py diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 85f94e80..f08f70c6 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -22,8 +22,8 @@ from openpower.decoder.power_enums import ( find_wiki_dir as _find_wiki_dir, ) from openpower.consts import SVP64MODE as _SVP64MODE -from openpower.insndb.dbtypes import Database as _Database -from openpower.insndb.dbtypes import SVP64Instruction as _SVP64Instruction +from openpower.insndb.types import Database as _Database +from openpower.insndb.types import SVP64Instruction as _SVP64Instruction DISCLAIMER = """\ diff --git a/src/openpower/sv/sv_binutils_fptrans.py b/src/openpower/sv/sv_binutils_fptrans.py index 34cba32e..ac26657b 100644 --- a/src/openpower/sv/sv_binutils_fptrans.py +++ b/src/openpower/sv/sv_binutils_fptrans.py @@ -8,7 +8,7 @@ from openpower.decoder.power_enums import ( FPTRANS_INSNS as _FPTRANS_INSNS, find_wiki_dir as _find_wiki_dir, ) -from openpower.insndb.dbtypes import ( +from openpower.insndb.types import ( Database as _Database, StaticOperand as _StaticOperand, WordInstruction as _WordInstruction, diff --git a/src/openpower/sv/trans/test_pysvp64dis.py b/src/openpower/sv/trans/test_pysvp64dis.py index e3ddfddd..d8af280a 100644 --- a/src/openpower/sv/trans/test_pysvp64dis.py +++ b/src/openpower/sv/trans/test_pysvp64dis.py @@ -1,7 +1,7 @@ from openpower.simulator.program import Program -from openpower.insndb.disasm import load, dump +from openpower.insndb.dis import load, dump from openpower.insndb.asm import SVP64Asm -from openpower.insndb.dbtypes import Database, Style +from openpower.insndb.types import Database, Style from openpower.decoder.power_enums import find_wiki_dir from openpower.sv import sv_binutils_fptrans import unittest diff --git a/src/openpower/sv/trans/test_pysvp64dis_branch.py b/src/openpower/sv/trans/test_pysvp64dis_branch.py index 63572847..99bb0990 100644 --- a/src/openpower/sv/trans/test_pysvp64dis_branch.py +++ b/src/openpower/sv/trans/test_pysvp64dis_branch.py @@ -1,7 +1,7 @@ from openpower.simulator.program import Program -from openpower.insndb.disasm import load, dump +from openpower.insndb.dis import load, dump from openpower.insndb.asm import SVP64Asm -from openpower.insndb.dbtypes import Database, Style +from openpower.insndb.types import Database, Style from openpower.decoder.power_enums import find_wiki_dir from openpower.sv import sv_binutils_fptrans import unittest -- 2.30.2