qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 11/15] Hexagon (target/hexagon) circular addressing


From: Richard Henderson
Subject: Re: [PATCH 11/15] Hexagon (target/hexagon) circular addressing
Date: Thu, 25 Mar 2021 10:33:40 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/24/21 8:50 PM, Taylor Simpson wrote:
+/*
+ * Many instructions will work with just macro redefinitions
+ * with the caveat that they need a tmp variable to carry a
+ * value between them.
+ */
+#define fGEN_TCG_tmp(SHORTCODE) \
+    do { \
+        TCGv tmp = tcg_temp_new(); \
+        SHORTCODE; \
+        tcg_temp_free(tmp); \
+    } while (0)

Wow, this is awfully magical. I don't even see "tmp" referenced in the SHORTCODE. What's going on here?


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]