From: Luke Kenneth Casson Leighton Date: Sat, 15 May 2021 16:05:26 +0000 (+0100) Subject: missed an assignment-copy for simple expressions X-Git-Tag: 0.0.3~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51abaefe2d567791d3c052ca8976dea0b7917c90;p=openpower-isa.git missed an assignment-copy for simple expressions --- diff --git a/src/openpower/decoder/pseudo/parser.py b/src/openpower/decoder/pseudo/parser.py index b6eba3e2..b24baeac 100644 --- a/src/openpower/decoder/pseudo/parser.py +++ b/src/openpower/decoder/pseudo/parser.py @@ -429,7 +429,11 @@ class PowerParser: else: print("help, help") print(astor.dump_tree(p[1])) - print("expr assign", name, p[1]) + print("expr assign", name, p[1], "to", p[3]) + if isinstance(p[3], ast.Name): + toname = p[3].id + if toname in self.gprs: + self.read_regs.add(toname) if name and name in self.gprs: self.write_regs.add(name) # add to list of regs to write p[0] = Assign(autoassign, name, p[1], p[3], iea_mode)