From: Dmitry Selyutin Date: Tue, 30 Aug 2022 08:57:39 +0000 (+0300) Subject: pysvp64dis: stop interation upon empty suffix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54100386e6d918d56500dbd0b84773e349e1de49;p=openpower-isa.git pysvp64dis: stop interation upon empty suffix --- diff --git a/src/openpower/sv/trans/pysvp64dis.py b/src/openpower/sv/trans/pysvp64dis.py index f915abbf..39d63ef5 100644 --- a/src/openpower/sv/trans/pysvp64dis.py +++ b/src/openpower/sv/trans/pysvp64dis.py @@ -37,6 +37,7 @@ def load(ifile, byteorder, **_): length = len(suffix) if length == 0: yield prefix + return elif length < 4: raise IOError(suffix) suffix = _WordInstruction.integer(value=suffix, byteorder=byteorder)