use namedtuple in get_rdflags
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Dec 2021 15:05:39 +0000 (15:05 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Dec 2021 15:05:39 +0000 (15:05 +0000)
src/openpower/decoder/power_decoder2.py

index 9a2a7394db78dd3ffb7aa7edc1445a8c121408b1..44b1bf7d70725a1aaea8798facba65d34780506f 100644 (file)
@@ -1606,8 +1606,8 @@ def get_rdflags(m, e, cu):
     rdl = []
     for idx in range(cu.n_src):
         regfile, regname, _ = cu.get_in_spec(idx)
-        rdflag, read = regspec_decode_read(m, e, regfile, regname)
-        rdl.append(rdflag)
+        decinfo = regspec_decode_read(m, e, regfile, regname)
+        rdl.append(decinfo.okflag)
     log("rdflags", rdl)
     return Cat(*rdl)