From 892640b6f48c723634fe718cb35350f3d82b6beb Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 17 Aug 2022 14:52:52 +0300 Subject: [PATCH] pysvp64dis: accept SelectableInt as an Instruction --- src/openpower/sv/trans/pysvp64dis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/sv/trans/pysvp64dis.py b/src/openpower/sv/trans/pysvp64dis.py index c2218d0a..dbbdce94 100644 --- a/src/openpower/sv/trans/pysvp64dis.py +++ b/src/openpower/sv/trans/pysvp64dis.py @@ -28,7 +28,7 @@ DATABASE = _Database(_find_wiki_dir()) class Instruction(_SelectableInt): def __init__(self, value, byteorder=ByteOrder.LITTLE): - if isinstance(value, Instruction): + if isinstance(value, _SelectableInt): value = value.value elif isinstance(value, bytes): value = int.from_bytes(value, byteorder=str(byteorder)) -- 2.30.2