aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Simpson <ltaylorsimpson@gmail.com>2024-03-06 20:23:19 -0700
committerBrian Cain <bcain@quicinc.com>2024-05-05 16:22:07 -0700
commit2720bd1dbd390da8bfbbc84c9293433c82dda88b (patch)
treed7aac0dd41a15f4e44663ade199418b95a88211a
parent2f0a771ddcb55cea39046502e8e834eb44b5fff7 (diff)
downloadqemu-2720bd1dbd390da8bfbbc84c9293433c82dda88b.zip
qemu-2720bd1dbd390da8bfbbc84c9293433c82dda88b.tar.gz
qemu-2720bd1dbd390da8bfbbc84c9293433c82dda88b.tar.bz2
Hexagon (target/hexagon) Add is_old/is_new to Register class
Signed-off-by: Taylor Simpson <ltaylorsimpson@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Brian Cain <bcain@quicinc.com> Message-Id: <20240307032327.4799-2-ltaylorsimpson@gmail.com> Signed-off-by: Brian Cain <bcain@quicinc.com>
-rwxr-xr-xtarget/hexagon/hex_common.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/hexagon/hex_common.py b/target/hexagon/hex_common.py
index c09b48b..f6f1879 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):