From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6802] Fix tcg after commit 6800
Date: Tue, 10 Mar 2009 10:29:46 +0000 [thread overview]
Message-ID: <E1LgzDW-0001yg-Bo@cvs.savannah.gnu.org> (raw)
Revision: 6802
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6802
Author: aurel32
Date: 2009-03-10 10:29:45 +0000 (Tue, 10 Mar 2009)
Log Message:
-----------
Fix tcg after commit 6800
The introduction of TCGV_EQUAL and not op is slightly broken.
The definition of DEBUG_TCGV shows that.
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/tcg/tcg-op.h
trunk/tcg/tcg.h
Modified: trunk/tcg/tcg-op.h
===================================================================
--- trunk/tcg/tcg-op.h 2009-03-10 09:03:18 UTC (rev 6801)
+++ trunk/tcg/tcg-op.h 2009-03-10 10:29:45 UTC (rev 6802)
@@ -1435,7 +1435,7 @@
static inline void tcg_gen_not_i64(TCGv_i64 ret, TCGv_i64 arg)
{
#ifdef TCG_TARGET_HAS_not_i64
- tcg_gen_op2_i32(INDEX_op_not_i64, ret, arg);
+ tcg_gen_op2_i64(INDEX_op_not_i64, ret, arg);
#else
tcg_gen_xori_i64(ret, arg, -1);
#endif
Modified: trunk/tcg/tcg.h
===================================================================
--- trunk/tcg/tcg.h 2009-03-10 09:03:18 UTC (rev 6801)
+++ trunk/tcg/tcg.h 2009-03-10 10:29:45 UTC (rev 6802)
@@ -153,8 +153,6 @@
#define MAKE_TCGV_I64(x) (x)
#define GET_TCGV_I32(t) (t)
#define GET_TCGV_I64(t) (t)
-#define TCGV_EQUAL_I32(a, b) (GET_TCGV_I32(a) == GET_TCGV_I32(b))
-#define TCGV_EQUAL_I64(a, b) (GET_TCGV_I64(a) == GET_TCGV_I64(b))
#if TCG_TARGET_REG_BITS == 32
#define TCGV_LOW(t) (t)
@@ -163,6 +161,9 @@
#endif /* DEBUG_TCGV */
+#define TCGV_EQUAL_I32(a, b) (GET_TCGV_I32(a) == GET_TCGV_I32(b))
+#define TCGV_EQUAL_I64(a, b) (GET_TCGV_I64(a) == GET_TCGV_I64(b))
+
/* Dummy definition to avoid compiler warnings. */
#define TCGV_UNUSED_I32(x) x = MAKE_TCGV_I32(-1)
#define TCGV_UNUSED_I64(x) x = MAKE_TCGV_I64(-1)
reply other threads:[~2009-03-10 10:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LgzDW-0001yg-Bo@cvs.savannah.gnu.org \
--to=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).