From: Taylor Simpson Date: Thu, 7 Mar 2024 03:23:19 +0000 (-0700) Subject: Hexagon (target/hexagon) Add is_old/is_new to Register class X-Git-Tag: qemu-xen-4.20.0~162^2~8 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2720bd1dbd390da8bfbbc84c9293433c82dda88b;p=qemu-xen.git Hexagon (target/hexagon) Add is_old/is_new to Register class Signed-off-by: Taylor Simpson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Brian Cain Message-Id: <20240307032327.4799-2-ltaylorsimpson@gmail.com> Signed-off-by: Brian Cain --- diff --git a/target/hexagon/hex_common.py b/target/hexagon/hex_common.py index c09b48bb36..f6f187968a 100755 --- a/target/hexagon/hex_common.py +++ b/target/hexagon/hex_common.py @@ -428,10 +428,18 @@ class Source: class OldSource(Source): def reg_tcg(self): return f"{self.regtype}{self.regid}V" + def is_old(self): + return True + def is_new(self): + return False class NewSource(Source): def reg_tcg(self): return f"{self.regtype}{self.regid}N" + def is_old(self): + return False + def is_new(self): + return True class ReadWrite: def reg_tcg(self): @@ -444,6 +452,10 @@ class ReadWrite: return True def is_readwrite(self): return True + def is_old(self): + return True + def is_new(self): + return False class GprDest(Register, Single, Dest): def decl_tcg(self, f, tag, regno):