qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Froyd <froydnj@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Fix DEBUG_TCGV compile error.
Date: Tue, 16 Dec 2008 12:21:45 -0800	[thread overview]
Message-ID: <1229458905-9829-1-git-send-email-froydnj@codesourcery.com> (raw)

Don't call TCGV_LOW on arg2.  This section of code falls under
#if TCG_TARGET_REG_BITS == 32, so arg2 will always be a TCGv_i32.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
---
 tcg/tcg-op.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index 5432ac1..b52056c 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -654,7 +654,7 @@ static inline void tcg_gen_ld8s_i64(TCGv_i64 ret, TCGv_ptr arg2,
 static inline void tcg_gen_ld16u_i64(TCGv_i64 ret, TCGv_ptr arg2,
                                      tcg_target_long offset)
 {
-    tcg_gen_ld16u_i32(TCGV_LOW(ret), TCGV_LOW(arg2), offset);
+    tcg_gen_ld16u_i32(TCGV_LOW(ret), arg2, offset);
     tcg_gen_movi_i32(TCGV_HIGH(ret), 0);
 }
 
-- 
1.6.0.5

             reply	other threads:[~2008-12-16 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16 20:21 Nathan Froyd [this message]
2009-02-04 14:52 ` [Qemu-devel] [PATCH] Fix DEBUG_TCGV compile error Laurent Desnogues
2009-02-09 20:43 ` Aurelien Jarno

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=1229458905-9829-1-git-send-email-froydnj@codesourcery.com \
    --to=froydnj@codesourcery.com \
    --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).