From: Dmitry Selyutin Date: Thu, 22 Jun 2023 18:43:03 +0000 (+0300) Subject: insndb/db: introduce selectors command X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=348016ff0f96d051e74d78e3dfd97d5f5606ceea;p=openpower-isa.git insndb/db: introduce selectors command --- diff --git a/src/openpower/insndb/db.py b/src/openpower/insndb/db.py index 4c725fee..4d3b91da 100644 --- a/src/openpower/insndb/db.py +++ b/src/openpower/insndb/db.py @@ -106,7 +106,7 @@ class PCodeVisitor(InstructionVisitor): yield node -class ExtrasVisitor(SVP64InstructionVisitor): +class SelectorsVisitor(InstructionVisitor): @mdis.dispatcher.Hook( In1Sel, In2Sel, In3Sel, CRInSel, CRIn2Sel, OutSel, CROutSel, @@ -120,6 +120,8 @@ class ExtrasVisitor(SVP64InstructionVisitor): print(typename, node) yield node + +class ExtrasVisitor(SVP64InstructionVisitor, SelectorsVisitor): @mdis.dispatcher.Hook(SVP64Record.ExtraMap) @contextlib.contextmanager def dispatch_extramap(self, node): @@ -163,6 +165,10 @@ def main(): PCodeVisitor, "print instruction pseudocode", ), + "selectors": ( + SelectorsVisitor, + "print instruction selectors", + ), "extras": ( ExtrasVisitor, "print instruction extras (SVP64)",