From 0cf19c7f07f652a4d17019ff9dd2690b512e6c3d 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