From 64a5a5140b4709e3d7a6880c105ff00c6f078505 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 3 Sep 2023 09:38:10 +0300 Subject: [PATCH] insndb/core: walk over opcode value and mask --- src/openpower/insndb/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index 1850def6..867f9c4b 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -3738,6 +3738,12 @@ class Walker(mdis.walker.Walker): def dispatch_database(self, node): yield from self(tuple(node)) + @mdis.dispatcher.Hook(Opcode) + def dispatch_opcode(self, node): + for key in ("value", "mask"): + value = getattr(node, key) + yield (value, node, key, mdis.walker.AttributePath) + @mdis.dispatcher.Hook(Record) def dispatch_record(self, node): self.__record = node -- 2.30.2