pysvp64dis: stop interation upon empty suffix
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 30 Aug 2022 08:57:39 +0000 (11:57 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 30 Aug 2022 10:02:21 +0000 (13:02 +0300)
src/openpower/sv/trans/pysvp64dis.py

index f915abbf0cf5902dede4d7da406d53489973c826..39d63ef5cd981cc8d40c02815a97ade781a8e52f 100644 (file)
@@ -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)